You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrei Shakirin (JIRA)" <ji...@apache.org> on 2016/03/07 11:06:40 UTC
[jira] [Created] (CAMEL-9674) Using activemq component: Karaf
blueprint hangs when jmsConfig wasn't configured
Andrei Shakirin created CAMEL-9674:
--------------------------------------
Summary: Using activemq component: Karaf blueprint hangs when jmsConfig wasn't configured
Key: CAMEL-9674
URL: https://issues.apache.org/jira/browse/CAMEL-9674
Project: Camel
Issue Type: Improvement
Components: camel-activemq
Affects Versions: 2.12.3
Environment: - Karaf 2.3.3
- Aries blueprint 1.1.0
Reporter: Andrei Shakirin
Hi,
Sorry for reporting issue for pretty old Camel version, just like to be sure that it is (or will be) fixed in newer versions.
Environment: activemq camel component is used in Karaf container and configured in Aries blueprint
Issue: if configuration correct, activemq component works as a charm.
However if user forget to set jmsConfig with connection factory into ActiveMQComponent, the blueprint context hangs in "Creating" state and no any error message / exceptions are thrown. This make diagnostic of the problem very difficult.
The blueptrint configuration looks like:
{code}
<reference id="jmsConnectionFactory" interface="javax.jms.ConnectionFactory"/>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="jmsConnectionFactory"/>
</bean>
<bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory" ref="jmsConnectionFactory"/>
</bean>
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="configuration" ref="jmsConfig"/>
</bean>
{code}
The jmsConnectionFactory is imported as OSGi service.
To reproduce the problem it is enough to comment or remove <bean id="activemq" element. The blueprint context hangs without any error message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)