JMS Consumer ActiveMQ

Hello, I need help configuring JMS Consumer to consumer an ActiveMQ queue.

I am stuck at the validating account part.

Connection Factory: org.apache.archivemq.jndi.ActiveMQInitialContextFactory
I’ve added the JAR & populated:
InitialContext.INITIAL_CONTEXT_FACTORY
InitialContext.PROVIDER_URL
Context.SECURITY_PRINCIPAL
Context.SECURITY_CREDENTIALS

I get this error when validating:

Failed to validate account: activemq is undefined. (Reason: activemq is undefined.; Resolution: Check the spelling of the variable)

Hi fbatchelor83,

You can try to upload the .jar which is in the folder where activemq is installed (it should contain activemq-all…):
image

Than you can populate the other settings as following:

Connection Factory: = ConnectionFactory
JNDI Properties:

Property Name Property Value Value
java.naming.factory.initial org.apache.activemq.jndi.ActiveMQInitialContextFactory Default
java.naming.provider.url tcp://hostname:port This value is shown when activeMQ is started
queue.MyQueue Created in activeMQ console

Regards, Jovan.