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
2
votes
0 answers

Unable to initialize bean cxf?

currently i'm working on karaf prject, i have deployed 3 bundle module-data, module-service and module-jaxrs with Active status, then when i configured karaf feature to automaticaly deploy jar's the status of module-jaxrs became failure beacause…
Hamza Khadhri
  • 207
  • 4
  • 19
2
votes
1 answer

How to fix: "Status: GracePeriod Blueprint Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)"

I built a bundle using camel-archetype-blueprint. But after deploy to ServiceMix, it has not run and stayed in GracePeriod state. There is no errors in log:display. Calling bundle:diag results in: "Status: GracePeriod Blueprint Missing…
J.Doe
  • 21
  • 2
2
votes
0 answers

Camel REST service problem in parallel calls

I have created a REST service with Apache Camel (REST DSL) running on Karaf container that accepts a list of items and returns the availabilities of those them. The problem is that if the service is called in parallel it doesn’t return the correct…
2
votes
0 answers

Property Injection from a blueprint file into java DSL Camel Routebuilder is not working

I am defining a list in the following way in my blueprint-bean.xml "test 1"
2
votes
1 answer

adding resource files to karaf classpath

I am working on a project using karaf 4.0.5, and osgi. We have client side code to invoke a REST API, which requires to load 3 "*.properties" files. I have been given a client jar that I'm using to invoke the server side classes and methods…
Sanjeev R
  • 43
  • 6
2
votes
2 answers

Terminating OSGI blueprint bundle after stop of referenced service

I have such issue. I have two OSGI blueprint bundles. One of them is like a service and another is using it. I'm running them on karaf. So, I want to implement functionality so when I'm stopping service then my other bundle also should be…
Bohdan Myslyvchuk
  • 1,657
  • 3
  • 24
  • 39
2
votes
1 answer

How to deploy a camel/blueprint service multiple times using different property placeholders

Normally we are deploying our camel/blueprint based services once. Each service has its own property placeholder and the camel-context is bound to it:
dermoritz
  • 12,519
  • 25
  • 97
  • 185
2
votes
3 answers

Camel route not able to find bean defined in other blueprint xml file(other bundle)

We are using Blueprint + Camel + Karaf ,migrating from Spring . I am new to OSgi Blueprint . We are using Blueprint XML to define services from beans defined in blueprint xml. After we added Service in Blueprint XML, atleast are getting from karaf…
Slok
  • 576
  • 1
  • 12
  • 27
2
votes
0 answers

How to load properties for Blueprint XML from database

I need to load some properties for Blueprint XML from database. How to do this in Blueprint XML? I have struggled to find good examples for Blueprint. Is there something similar to Spring PropertyPlaceholderConfigurer?
veinhorn
  • 2,363
  • 6
  • 21
  • 33
2
votes
1 answer

MongoDB doesn't work on Karaf 4.0.8 with Camel 2.18.1

We created a simple test bundle, but as soon as we try to use MongoDB in one of our Camel routes, the route does not start anymore. The blueprint is quite simple:
maxdev
  • 2,491
  • 1
  • 25
  • 50
2
votes
1 answer

Using "prop" namespace in camel blueprint to resolve a property

When i am trying to resolve few properties as xs:int values using prop namespace(http://camel.apache.org/schema/placeholder) as explained in camel documentation (http://camel.apache.org/using-propertyplaceholder.html) i am facing below issue where…
Sanvijaya
  • 87
  • 1
  • 8
2
votes
2 answers

How to access/set property via camel context programatically

I am using properties stored/defined in my blueprint.xml: ...
dermoritz
  • 12,519
  • 25
  • 97
  • 185
2
votes
1 answer

When "@PropertyInject" fields are injected, want to check injected values

I am using @PropertyInject in some of my classes. Those classes are inject via blueprint (using maven blueprint plugin). I want to check the values that are injected into fields with @PropertyInject. The problem is that within PostConstruct…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
2
votes
0 answers

Unit testing a Managed Service Factory or Service Component

Is there an sample of unit testing the creation of a SCR or MSF via ConfigAdmin without using pax-exam? I'm looking to startup up my MSF or SCR.. then add the configuration entry and confirm the creation of the service. Currently, I'm using the…
Matt Pavlovich
  • 4,087
  • 1
  • 9
  • 17
2
votes
1 answer

"camel-blueprint" namespace not found in blueprint declaration (Aries within Felix)

I'm trying to run a standalone OSGi framework to run blueprint bundles within it that execute camel routes. The OSGi framework is Apache Felix, the blueprint implementation is Apache Aries. The following bundles are loaded to the BundleContext of…
maxdev
  • 2,491
  • 1
  • 25
  • 50