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
3
votes
3 answers

Order of deployment of bundles

I have a question about OSGI bundles deployment. I have 7 bundles which I need to deploy in a strict order otherwise I get no class found error. Part of the bundles are used as static libraries, part of them export OSGI services. In OSGI…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
3
votes
2 answers

Activemq RedeliveryDelay from redeliveryPolicy is ignored

I got some issues with Camel and Activemq on a OSGI environment (Karaf). I would like that messages in the queue will be redelivered if it has failed! But i want to put a delay before retrying. I found the class org.apache.activemq.RedeliveryPolicy.…
j1704
  • 53
  • 5
3
votes
3 answers

Reading enviroment variable in osgi blueprint

I'm building some camel routes deployed in OSGi (JBoss Fuse) I'm reading my properties file using this: file:/C:/TestBed/sucursal.propiedades
Desenfoque
  • 804
  • 2
  • 11
  • 30
3
votes
1 answer

ServiceMix unable to find OSGI data source

I've been diving into ServiceMix 5.4.0 and OSGi, and have run across a rather weird behavior with OpenJPA. I have a data source defined like so:
McCroskey
  • 1,091
  • 1
  • 11
  • 21
3
votes
1 answer

How to invoke a bean method in Apache Blueprint?

I have the following java classes public class SecondClass { //... } public class MyClass { public void doSomething(SecondClass secondClass) { //... } } In blueprint I have something like the following
slux83
  • 686
  • 9
  • 20
3
votes
1 answer

Fuse ESB/OSGI/Blueprint reading configuration files alphabetically?

I experience something rather strange and I would like to know if other people have experienced the same... I am currently working on a project using jboss fuse (previously fuse esb) and we are using blueprint for our configuration files. We use…
Minibiti
  • 113
  • 1
  • 5
3
votes
1 answer

ActiveMQ remote connections refused despite 0.0.0.0 in broker URL

I have an ActiveMQ v5.7.0 broker, running in Karaf v2.3.3, that I want to enable for remote connections. I've set the broker URL to 0.0.0.0:61616, to enable it to listen to network traffic. I've opened the firewall to allow the traffic from the…
Jeremy Gooch
  • 939
  • 4
  • 16
  • 28
3
votes
2 answers

Transaction rollback in OSGi

I have an OSGi bundle in which I declare a service and inject into it a transaction with blueprint:
Christina
  • 3,562
  • 3
  • 22
  • 32
3
votes
1 answer

DBCP Idle Connections not being reused in Camel Route

I am pretty sure the idle connections are not being re-used or I am leaking connections. I have a simple route that start from a file consumer. The file consumer consumes text files. After picking up the file I check a table to ensure that this is…
Namphibian
  • 12,046
  • 7
  • 46
  • 76
3
votes
2 answers

Blueprint dependency injection within a bundle

I've come across a case where I want to use Blueprint (Aries) to resolve a dependency at run-time and the implementation is defined in the same bundle which requires it and will not be used in any other bundles. I am abstracting the implementation…
jdgilday
  • 866
  • 7
  • 21
3
votes
1 answer

Karaf OSGI Aries Blueprint ClassCastException: Impl cannot be cast to Interface

Karaf v2.3.0, org.apache.aries.blueprint.core:1.0.1, throws ClassCastException when an interface method is called on service imported from another bundle. The interface method is defined on the interface and implemented by the implementation class.…
spiraleddy
  • 147
  • 10
3
votes
2 answers

OSGI service JPA PersistenceContext not injected

I have a core library that has an interface that I want to expose as an OSGI service in Fuse ESB (Apache ServiceMix and Karaf). The goal is to allow other bundles to use it. The service uses JPA (OpenJPA) and Spring. The following is the…
3
votes
2 answers

Intra- and inter-bundle mutual dependencies in OSGi component models

In my current application, I've run into this pattern in a couple of places: I have two service interfaces in a single bundle which do different but related jobs. interface Service1 { ... } interface Service2 { ... } and want to have singleton…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
2
votes
0 answers

OSGI service Call using Camel route

I get method not found exception when I try to connect/call OSGI service using camel route and I am not sure what logic I am missing here. //Exception Caused by: org.apache.camel.RuntimeCamelException:…
1 2
3
27 28