|
Re: Send activemq message to CarnotApplicationQuque [message #990629 is a reply to message #990535] |
Thu, 13 December 2012 14:01 |
|
Hi Rahim,
it's likely that the name for the JNDI lookup is wrong and you should double-check under what name the connection factory is available.
This depends on your deployment. Since you're using ActiveMQ, my guess is you have a Spring WAR deployment and you should find the Stardust Spring context files that assemble and publish the connection factory. Also check your context.xml and web.xml if there are resource-ref entries that expose the connection factory under a different name.
In case you're deploying your code within the same WAR as the Stardust engine, the simplest thing would be to wrap your code into a Spring bean and inject a reference to the connection factory bean directly. This would eliminate the need for a JNDI lookup. (That is assuming you are using a Spring-based deployment).
Best regards,
Jan
|
|
|
Powered by
FUDForum. Page generated in 0.02335 seconds