OK, now I understand.
By the way, Christian and I are working to provide samples directly in
Karaf distribution. Christian's tutorial is a bit old now and not up to
date (it didn't work on Karaf 3.0.0, lot of changes has been done in the
commands, etc).
For Karaf 3.0.0, I would advice the users to wait the "native" Karaf
samples, or at least use Christian's github.
Anyway:
1/ you should have installed ActiveMQ with feature:install
activemq-broker, right (if you use ActiveMQ 5.9.0) ?
This feature installs ActiveMQ with a broker configuration in
etc/activemq.xml:
ls -l|grep -i activemq
activemq.xml
org.apache.activemq.server-default.cfg
org.apache.activemq.webconsole.cfg
2/ on the Camel JmsConfiguration, you have to specify the username and
password.
My advice, to simplify, is to edit etc/activemq.xml and remove:
<plugins>
<jaasAuthenticationPlugin configuration="karaf" />
</plugins>
If you use previous ActiveMQ version, it should work as the
authentication plugin was not enabled.
By the way, I plan to merge and push my samples branch over the week end.
Regards
JB
On 01/30/2014 12:46 PM, Sebarry wrote:
Hi JB,
I have ActiveMQ embedded in Karaf. I'm trying to use it from code to add a
JMS component to Camel (see below). I'm trying to do a JPA to JMS tutorial -
http://www.liquid-reality.de/display/liquid/2012/07/20/Apache+Karaf+Tutorial+Part+7+-+Camel+JPA+and+JTA+transactions
ActiveMQConnectionFactory cf = new
ActiveMQConnectionFactory("tcp://localhost:61616");
JmsConfiguration jmsConfig = new JmsConfiguration(cf);
context.addComponent("jms", new JmsComponent(jmsConfig));
Does that help?
Sean
--
View this message in context:
http://karaf.922171.n3.nabble.com/faultJmsMessageListenerContainer-Could-not-refresh-JMS-Connection-for-destination-person-tp4031400p4031410.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com