Qpid JMS 2.0 Client for Active MQ

AMQ is based on Active MQ 5.x. The default activemq JMS library only supports JMS 1.1. The Qpid JMS client library for AMQP supports JMS 2.0. While testing the Qpid JMS client, I found a problem with provider-spec. The Amazon MQ provider spec for AMQP is amqp+ssl. The Qpid JMS client expects amqps . In order to fix this mismatch, I tried the following solution:

Modify the provider spec

Download the qpid-jms library. In the following folder,

/qpid-jms/qpid-jms-client/src/main/resources/META-INF/services/org/apache/qpid/jms/provider

Add a folder with AMQ provider spec e.g. amqp+ssl with contents as follows:

class=org.apache.qpid.jms.provider.amqp.AmqpProviderFactory 
transportScheme=ssl 
providerScheme=amqps+ssl

Rebuild the qpid-jms library and use the new library.

Last updated

Was this helpful?