简体   繁体   English

WebSphere中的JMS,MQ异常

[英]JMS, MQ Exception in WebSphere

I am getting this exception when I am trying to read message from WebSphere MQ via MDB, can any one please guide me.When I deploy the EAR file on my WebSphere then it works flawlessly but I am getting exception on a different WebSphere. 当我尝试通过MDB从WebSphere MQ读取消息时,我得到了这个异常,任何人都可以引导我。当我在我的WebSphere上部署EAR文件时,它可以完美地工作,但我在不同的WebSphere上获得异常。 Am I missing something in configuration, why does this exception occur? 我在配置中遗漏了什么,为什么会发生这种异常?

javax.ejb.EJBException: Injection failure; nested exception is: java.lang.IllegalArgumentException: Can not set javax.jms.ConnectionFactory field com.ultramatics.hawkeye.mdb.listener.HawkeyeMdbListener.replyCF to com.ibm.mq.jms.MQQueue

You are obviously trying to assign a ConnectionFactory field with a MQQueue object, two different types. 您显然正在尝试使用两个不同类型的MQQueue对象分配ConnectionFactory字段。

I guess you grab them from JNDI or similar and that there might be some naming mess up in the configuration? 我想你从JNDI或类似的东西中抓取它们,并且配置中可能有一些命名混乱?

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

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