Skip to main content
Known Participant
Feb 13, 2013 9:05 PM UTC
Answered

CF9.01 and ActiveMQ

I am trying to accept JMS messages on my CF9.01 server from a queue on a remote server running ActiveMQ 5.7

The examples event gateway uses a Topic rather than a Queue.

I keep getting:

"Error","Thread-94","02/11/13","13:43:30",,"Error starting gateway MyTestActiveMQGateway: Queue.ABS"

javax.naming.NameNotFoundException: Queue.ABS

    at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java: 235)

    at javax.naming.InitialContext.lookup(InitialContext.java:392)

    at examples.ActiveMQ.JMSConsumeSession.<init>(Unknown Source)

    at examples.ActiveMQ.JMSConsumer.start(Unknown Source)

    at examples.ActiveMQ.JMSGateway.startGateway(Unknown Source)

    at coldfusion.eventgateway.GenericGateway.start(GenericGateway.java:118)

    at coldfusion.eventgateway.EventServiceImpl$GatewayStarter.run(EventServ iceImpl.java:1428)

Any ideas or examples?

Thanks,

Steve

This topic is closed to new replies. Start a new post to keep the conversation going.
BKBK
BKBKCorrect answer
Community Expert
Feb 17, 2013 10:11 AM UTC

What about

contextProperties=queue.abs

destinationName=abs

in place of

destinationName=queue.abs?

5 replies

BKBK
Community Expert
Community Expert
Feb 16, 2013 3:15 PM UTC

The error message is telling you that a queue of that name could not be found. The implementation of ActiveMQ in ColdFusion uses Topics as well as Queues. It depends on the settings you put in your configuration file. Could we see the contents of your config file?

Translate
Known Participant
Feb 17, 2013 1:45 AM UTC

debug=yes

topic=no

username=some_user

password=somePassword

providerURL=ssl://xxx.xxx.xxx.xxx:61617

initialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory

connectionFactory=ConnectionFactory

destinationName=Queue.ABS

Translate
BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
Feb 17, 2013 10:11 AM UTC

What about

contextProperties=queue.abs

destinationName=abs

in place of

destinationName=queue.abs?

Translate