0

我的设置如下:

  • IBM Websphere 应用服务器 6.0.2.43
  • 在 IBM JDK 6 上运行的 JMS 客户端

从 IBM JDK 1.4 运行时,我建立了一个 JMS 队列,并且能够使用我的测试 JMS 客户端发送/接收消息。但是,目标应用程序需要 Java 6.0,从 JDK 6.0 尝试测试应用程序会产生以下错误:

Jan 3, 2013 3:57:41 AM null null
SEVERE: SIB_MESSAGE
Jan 3, 2013 3:57:41 AM null null
WARNING: SIB_MESSAGE
javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not possible to connect to bus ROPS_BUS because the following bootstrap servers could not be contacted [10.0.92.92:7276:BootstrapBasicMessaging] and the following bootstrap servers returned an error condition []. See previous messages for the reason for each bootstrap server failure..
    at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:240)
    at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:159)
    at com.progressoft.tests.mq.ConnectTest.send(ConnectTest.java:141)
    at com.progressoft.tests.mq.ConnectTest.main(ConnectTest.java:51)
Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not possible to connect to bus ROPS_BUS because the following bootstrap servers could not be contacted [10.0.92.92:7276:BootstrapBasicMessaging] and the following bootstrap servers returned an error condition []. See previous messages for the reason for each bootstrap server failure.
    at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.bootstrapRequest(TrmSICoreConnectionFactoryImpl2.java:608)
    at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.remoteBootstrap(TrmSICoreConnectionFactoryImpl2.java:405)
    at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.createConnection(TrmSICoreConnectionFactoryImpl2.java:240)
    at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl2.createConnection(TrmSICoreConnectionFactoryImpl2.java:145)
    at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createCoreConnection(JmsJcaConnectionFactoryImpl.java:563)
    at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createCoreConnection(JmsJcaConnectionFactoryImpl.java:499)
    at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createConnection(JmsJcaConnectionFactoryImpl.java:312)
    at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:206)
    ... 3 more

我能够成功地远程登录主机/端口,并且设置对我来说似乎没问题(毕竟,它使用 Java 1.4 工作),我无法在服务器上找到更详细的尝试日志记录,很可能,我不知道要去找它。

有任何想法吗?

注意:我知道 WAS 6.0 支持已经结束,很久以前......但我现在坚持下去。

4

1 回答 1

1

我能够使用IBM Client for JMS on J2SE 和 IBM WebSphere Application Server从 IBM JDK 6(甚至从 Oracle JDK 6)连接到 WAS 队列。

尽管客户端正式支持 Java 1.4 和 1.5(IBM 和 SUN 实现),但它在 Java 6 上运行没有任何问题

我只需要将属性添加com.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB到初始上下文即可使用 Oracle/Sun JDK

该工具很有帮助,它生成了您实际需要的 2-3 个 jar,而不是我试图从 WAS 安装中获取依赖项的混乱。

于 2013-01-06T12:40:53.240 回答