Hi I think, you do everything correct. You can test the connection factory successful. The way you reference the connection factory is correct too. You can have the problem reported for ARIES. I have tested simillar problem for ServiceMix yesterday and I have found this problem occurs only in Karaf 2.3.x. It would clarify why do you have this problem using Karaf 2.3.6. In Karaf 2.4.x and 3.0.x it seems to be fixed. Probably it has been fixed in the newer version for Felix or Arieused in 2.4+.
This problem usually occurs while updating the bundle. You write you have the problem while deploying (also no update should occur). I can remember, one of the Karaf releases from the line 2.3.x had a problem with hot deployment - it looked like the bundle was refreshed while deploying. Could you please test it on the newer versions of 2.3.x (e.g. 2.3.10)? Regards Krzysztof On 25.03.2015 09:11, niels wrote: > Hey Krzysztof, > > I forgot to mention versions: > - Karaf 2.3.6 > - ActiveMQ 5.9.0 > - Camel 2.13.2 > > I also installed the JMS bundle and was able to list the connection factory: > > karaf@flux>jms:connectionfactories > JMS Connection Factory > localhost > > I'm also able to list the queues from AMQ without ClassNotFoundException you > first received. > > karaf@flux>jms:queues localhost > JMS Queues > ID_550952684d61638714670000_f934b9e9-fd31-470b-a924-1a7c306f6b22 > tracing > elasticsearch_log > ID_550952684d61638714670000_9701e4b3-37ef-4934-8882-deddb2d033fa > invoicing > > The only thing I try to do in the second bundle is to capture a reference to > the exported ConnectionFactory like I mentioned earlier: > > <reference id="jmsConnectionFactory" > interface="javax.jms.ConnectionFactory"/> > > The blueprint file are deployed by the dropping them in de deploy directory > for hot deploys. > > > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Retrieve-reference-of-JMS-ConnectionFactory-tp4039259p4039286.html > Sent from the Karaf - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE & OSS Architect Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/> Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC
