Skip to content
Advertisement

Configure Apache Qpid JMS (jakarta.jms) connectionfactory in Apache Camel XML DSL in AMQP component

Trying to use the jakarta.jms Apache Qpid AMQP client to process messages.

I am trying to use poolable connection factory using org.messagehub.

Standlone java code works, refer the java changes. When I try use the same in Spring XML DSL in Camel, the AMQP component doesn’t support the jakarta.jmx connection factory.

Does the apache-amqp component support JMS 2.0 from Apache Qpid client yet?

JavaScript
  • resources/jndi.properties
JavaScript
  • pom.xml
JavaScript
  • Camel component I tried to configure the AMPQ component
JavaScript

When I try configuration like below I get exception jakarta.jms exception where it expects javax.jms, for now i had to lower the version of messaging hub to 2.0.5 and use qpid-jms-client jar to 1.6.0.

JavaScript

Advertisement

Answer

The Camel AMQP component you are using doesn’t support Jakarta JMS an so you must revert to older versions of the Qpid JMS client and the Pooled JMS wrapper in order to make it work. This is your only options until there is a version of the Camel bits that supports Jakarta and you move on to it.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement