Skip to main content
Known Participant
February 13, 2013
Answered

CF9.01 and ActiveMQ

  • February 13, 2013
  • 1 reply
  • 1732 views

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 has been closed for replies.
Correct answer BKBK

What about

contextProperties=queue.abs

destinationName=abs

in place of

destinationName=queue.abs?

1 reply

BKBK
Community Expert
Community Expert
February 16, 2013

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?

Known Participant
February 17, 2013

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

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
February 17, 2013

What about

contextProperties=queue.abs

destinationName=abs

in place of

destinationName=queue.abs?