Apache Camel:是否可以在不使用Spring的情况下配置WMQ?

目前我正在使用apache camel和wmq。 对于camel配置和路由,我使用的是Java DSL。 但我找不到任何关于如何使用Java DSL配置WMQ的示例。

这是我尝试配置WMQ时得到的结果:

config.xml中

       //id   //vorname   //nachname      

component.xml文件

                          

但是,正如我之前所说,我不想使用Spring来配置它。 我更喜欢使用Java DSL。 可能吗? 如果是,你能给我一些例子或参考吗?

非常感谢您的帮助。 谢谢。

首先,我建议将此视为有关如何将camel与websphere MQ集成的教程。 希望它可以提供帮助。

取而代之的是,我认为您应该阅读以下链接,其中有关于使用Websphere MQ或其他JMS实现而不是ActiveMQ的一些好建议。

  1. http://camel.apache.org/jms.html
  2. http://java.dzone.com/articles/apache-camel-tutorial-eip
  3. http://camel.465427.n5.nabble.com/Error-when-using-Camel-write-to-Websphere-MQ-td5727817.html
  4. http://camel.465427.n5.nabble.com/IBM-MQ-and-CAMEL-td5591661.html
  5. http://camel.465427.n5.nabble.com/Can-Camel-communicate-over-IBM-MQ-sender-receiver-channels-td4429050.html
  6. 将Apache ServiceMix连接到Websphere MQ