Copy link to clipboard
Copied
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
What about
contextProperties=queue.abs
destinationName=abs
in place of
destinationName=queue.abs?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
What about
contextProperties=queue.abs
destinationName=abs
in place of
destinationName=queue.abs?
Copy link to clipboard
Copied
Thanks, that worked!
Copy link to clipboard
Copied
I am glad to hear that. Please kindly mark the question as answered. It would make it easier to be found by colleagues searching for answers to similar questions.