简体   繁体   English

使用在TomEE 1.7.4 plus上运行的JMS从IBM MQ 8访问(接收)

[英]Accessing (Receive) from IBM MQ 8 with JMS running on TomEE 1.7.4 plus

Latest Tutorials provided by IBM for simple PRODUCE and CONSUME to IBM MQ 8/9 are pretty easy to implement. IBM提供的有关IBM MQ 8/9的简单PRODUCE和CONSUME的最新教程非常容易实现。

Currently we have to figure out, how to read/receive Messages from one IBM MQ 8 Manager Queue out of an existing application. 当前,我们必须弄清楚如何从现有应用程序中从一个IBM MQ 8 Manager队列读取/接收消息。

Following setup: 设置如下:

  • IBM MQ 8 IBM MQ 8
  • Applicationserver with Application running, which needs to access the MQ: TomEE 1.7.4 plus 运行应用程序的Applicationserver,需要访问MQ:TomEE 1.7.4 plus
  • No WebSphere 没有WebSphere
  • No JNDI 没有JNDI

My expectation here is, that this will not work: 我的期望是,这将不起作用:

  • IBM MQ 8 needs JMS 2.0 features to connect IBM MQ 8需要JMS 2.0功能进行连接
  • which needs Java EE 7 需要Java EE 7
  • while TomEE 1.7.4 plus is Java EE 6 compatible (TomEE 7.x would be Java EE 7 compatible) 而TomEE 1.7.4 plus与Java EE 6兼容(TomEE 7.x将与Java EE 7兼容)

I would appreciate any help especially pointing me to an IBM MQ JMS implementation deployable to TomEE 1.7.x, using straight forward parameters for host, Q-Manager, Channel, Queue, User without JNDI. 我将不胜感激,特别是将我引到可部署到TomEE 1.7.x的IBM MQ JMS实现中,该实现使用对主机,Q-Manager,通道,队列和不带JNDI的用户使用直接参数。

Update#1: One good tutorial to create a simple consumer or producer for IBM MQ (working with 8 and 9) https://developer.ibm.com/messaging/learn-mq/mq-tutorials/develop-mq-jms/ 更新#1:一个很好的教程,为IBM MQ创建一个简单的使用者或生产者(使用8和9) https://developer.ibm.com/messaging/learn-mq/mq-tutorials/develop-mq-jms/

Update#2: As expected, integrating this with TomEE 7.x seems to work fine. 更新2:如预期的那样,将其与TomEE 7.x集成似乎可以正常工作。 Unfortunately migrating the whole infrastructure and application dependencies is not an option to resolve it this way... 不幸的是,迁移整个基础结构和应用程序依赖项不是解决这种问题的选择。

您已经在方括号中回答了自己的问题,如果您使用可与Java EE 7一起使用的TomEE 7.x,那将是很好的选择。

Since the requested combination is not possible, we skipped JMS integration and are using IBM MQ classes for Java . 由于无法实现所请求的组合,因此我们跳过了JMS集成,并使用Java的IBM MQ类 https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q118320_.htm https://www.ibm.com/support/knowledgecenter/zh-CN/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q118320_.htm

JMS solution is prepared and can be integrated as soon as TomEEs are migrated to 7.x. 已经准备好JMS解决方案,并且可以在将TomEE迁移到7.x后立即进行集成。

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

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