简体   繁体   English

在应用程序中设置JMS队列连接以使用Apache Camel连接到它

[英]Setting up JMS queue connection in application to connect to it using Apache Camel

I have given client's queue connection details to connect to it using Camel. 我已经提供了客户端的队列连接详细信息,以使用Camel连接到它。 While setting it up in applicationContext.xml, I am stuck at a point. 在applicationContext.xml中进行设置时,我陷入了困境。
Client has provided both jndiNames and queue names to connect to these queues. 客户端提供了jndiNames和队列名称以连接到这些队列。 It is something like 就像

QueueName
com.requestQueue
com.responseQueue

JNDI Name
comRequestQueue
comResponseQueue

During POC, I have just given my local queue names to connect to it using Camel. 在POC期间,我刚刚给了我的本地队列名称以使用Camel连接到它。 But here I am confused how to use both jndiNames and queueNames in camel configuration. 但是在这里我很困惑如何在骆驼配置中同时使用jndiNames和queueNames。

There is some details at http://camel.apache.org/jms see the section about using different JMS providers, and using JNDI to find connection factory. http://camel.apache.org/jms上有一些详细信息,请参阅有关使用不同的JMS提供程序以及使用JNDI查找连接工厂的部分。

There should be plenty of examples you can find with google. 您应该可以在Google上找到很多示例。 Its essnetially how to use Spring JMS with JNDI. 从本质上讲,如何将Spring JMS与JNDI结合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM