我的 j2EE 应用程序当前正在ServiceMix上运行。现在我想将 JMS 添加到我的应用程序中。应用程序应该能够向/从保留在MQSeries上的队列发送/接收 JMS 消息。
mq.hostname=10.3.6.19
mq.channel=CHANNEL
mq.queueManager=QManager
mq.port=1422
我想做的是:
1. Create a jndi.xml file and do configuration for jms stuff.
2. my app will initialize the context, look up jndi name, and create a connection, queueManager, queue. .etc
3. Develop send and receive methods.
我的问题是:你能告诉我如何做第一步和第二步吗?(ServiceMix 的 jndi 中的脚本与 tomcat 的 jndi 等不同。ServiceMix 使用基于 Spring 的 JNDI 提供程序 。http://servicemix.apache.org/jndi-configuration.html)