Questions tagged [blueprint-osgi]

Blueprint OSGi is a specification introducing dependency injection to OSGi and providing a simple mechanism for OSGi bundles to use and provide services.

Blueprint provides a dependency injection framework for OSGi and was standardized by the OSGi Alliance in OSGi Compendium R4.2.

It is designed to deal with the dynamic nature of OSGi, where services can become available and unavailable at any time. The specification is also designed to work with plain old Java objects (POJOs) enabling simple components to be written and unit tested in a JSE environment without needing to be aware of how they are assembled.

The Blueprint XML files that define and describe the assembly of various components are key to the Blueprint programming model. The specification describes how the components get instantiated and wired together to form a running module.

Source: http://aries.apache.org/modules/blueprint.html

415 questions
4
votes
1 answer

Shut the default web page of Apache Aries down

I am using the Apache Aries in karaf. I have setup my homepage in a separate bundle. The problem is that when i stop the 'web-home' bundle of mine, I see the apache aries default page. In the karaf-logs I see the default page is always called…
Makan
  • 2,508
  • 4
  • 24
  • 39
4
votes
0 answers

Trouble using json-path in camel blueprint test

I am trying to test a Camel Blueprint route. I am using camel version 2.12 and camel-jsonpath is available as of version 2.13. So instead of camel-jsonpath, I am trying to use json-path itself in my unit tests. But as soon as adding the json-path…
4
votes
1 answer

How to invoke a REST call (POST with JSON body) from Camel in blueprint

I want to call a POST rest service in camel blueprint. My blueprint xml file is the following:
chrisblo
  • 768
  • 1
  • 13
  • 30
4
votes
2 answers

Bundle is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]

I have written a simple apache camel project which will eventually be deployed in a FUSE container. For now, I'm simply trying to get a basic unit test working. I'm using the example here as a starting point. I have written unit tests which work,…
mdarwin
  • 1,684
  • 7
  • 28
  • 72
4
votes
2 answers

Fuse OSGI + Spring JDBC issue

I am new to OSGI development. I want to insert records to DB using Spring JDBC in Fuse server. I developed standalone SpringJDBC code, it is working good. I have converted to blueprint standard. while installing package in Fuse server, I am getting…
Gnana
  • 2,130
  • 5
  • 26
  • 57
4
votes
1 answer

Apache Felix OSGi logging with Logback

My current application uses Logback for logging. I have used Apache Felix to deploy an OSGi framework that allows bundles to be dynamically registered at runtime. The Felix setup is as follows: ... //System.out.println("Building OSGi…
tarka
  • 5,289
  • 10
  • 51
  • 75
4
votes
2 answers

OSGi Blueprint configuration: injecting a list of bean references

I am trying to inject a list of beans in a list property in my blueprint.xml (similar to what you would do in Spring configuration): blueprint.xml:
Jens
  • 20,533
  • 11
  • 60
  • 86
3
votes
1 answer

Why is Aries Blueprint not registering a namespace handler for camel-cxf and camel-blueprint?

Camel 2.23.1Karaf 4.2.4 Aries Blueprint (for the outer container that registers everything) Camel Blueprint (for Camel routes) Camel CXF (for rsServer) CXF Core (for access to the CXF bus property) XML Namespaces
Jonathan Komar
  • 2,678
  • 4
  • 32
  • 43
3
votes
1 answer

org.apache.aries.jpa:org.apache.aries.jpa.blueprint:2.3.0 - Can't make run

I'm following the tutorial here (https://github.com/apache/aries-jpa/tree/master/examples) to run the aries-jpa examples, but unsuccessfully. The README.md file says to performa the following operations: feature:repo-add…
user6882156
3
votes
1 answer

Trouble creating a simple REST service and apply routing via the blueprint.xml file. I want to do this without Spring... - only blueprint

Trying to create a simple REST service and apply routing via the blueprint.xml file. I want to do this without Spring... - only blueprint My attempts all end with the following exception: "java.lang.IllegalStateException: Cannot find…
sairn
  • 461
  • 3
  • 24
  • 58
3
votes
1 answer

Getting Bad type on operand stack when calling Camel-jackson API

I have camel-jackson and jackson-databind jars in my apps and server which I am using is jboss fuse. I am able to deploy the bundles with no errors but when i am installing/updating the bundle which invokes camel-jackson api then I am getting the…
SomMS
  • 567
  • 3
  • 23
3
votes
1 answer

How to share cxf:bus over multiple osgi bundles on karaf?

In my application, I have 2 bundles. Both are using cxf to create Restful server. In those bundles I load cxf via blueprint. I define cxf:bus on those bundles with the same id to expect that two bundle will share the same bus instance then I can…
user3444693
  • 464
  • 4
  • 7
3
votes
2 answers

Is there a way to skip "waiting for dependencies" for Camel blueprint testing?

I have some Camel blueprint unit tests running against a camel route. The route is a simple camel route that pulls messages from an activemq queue and then sends to another queue. I'm using an osgi service to expose the amq component I'm sending and…
David
  • 579
  • 1
  • 5
  • 20
3
votes
1 answer

How to organize a large karaf blueprint.xml?

I have a blueprint.xml for a camel app deployed in Karaf 3.5.6 under Servicemix which looks somewhat similar to what shown below:-