Connecting to Apache Active MQ JMS Provider

Jar Name

Location

activemq-all-5.7.0.jar

Located in install directory for Active MQ

 

  • Properties for Initial Context object

Property Name

Default/Sample Value

java.naming.factory.initial

  • org.apache.activemq.jndi.ActiveMQInitialContextFactory

java.naming.provider.url

tcp://[hostname]:[port]

e.g. tcp://0.0.0.0:61616

queue.[jndi name]

Physical queue name. This property is needed if prefix is not added to the queue name.

topic.[jndi name]

Physical topic name.

 

  • Queue Connection Factory Name
    • QueueConnectionFactory

 

  • Topic  Connection Factory Name
    • TopicConnectionFactory

 

  • Prefix needed before queue name(optional)
    • dynamicQueues/

Note - This will create a queue to be created if the queue does not exist.

Have more questions? Submit a request

0 Comments

Article is closed for comments.