0

我尝试InitialContext在 WebsphereMQ 7.5.0 中进行配置,我的JmsAdmin.config文件如下:

INITIAL_CONTEXT_FACTORY: com.ibm.websphere.naming.WsnInitialContextFactory
PROVIDER_URL: corbaloc:iiop:localhost:2810

当我在 Linux 中运行 JmsAdmin 时,出现以下异常:

[appuser@integration2 bin]$ ./JMSAdmin -v
Picked up JAVA_TOOL_OPTIONS: -Dorg.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB

Licensed Materials - Property of IBM
5724-H72, 5655-R36, 5724-L26, 5655-L82
(c) Copyright IBM Corp. 2008, 2011 All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.
Starting WebSphere MQ classes for Java(tm) Message Service Administration

Initializing JNDI Context...
   INITIAL_CONTEXT_FACTORY: com.ibm.websphere.naming.WsnInitialContextFactory
   PROVIDER_URL: corbaloc:iiop:localhost:2810
Done.

Welcome to the WebSphere MQ JMS administration tool command-line interface

InitCtx> DEF qcf(mqconn)
Sep 11, 2012 12:48:18 PM com.ibm.ws.naming.util.WsnInitCtxFactory
**WARNING: jndiUnavailCommErr
Unable to bind object
javax.naming.ServiceUnavailableException: A communication failure occurred while
  attempting to obtain an initial context with the provider URL:
  "corbaloc:iiop:localhost:2810".  Make sure that any bootstrap address
  information in the URL is correct and that the target name server is running.
  A bootstrap address with no port specification defaults to port 2809.  Possible
  causes other than an incorrect bootstrap address or unavailable name server
  include the network environment and workstation network configuration.
  [Root exception is org.omg.CORBA.TRANSIENT: java.net.ConnectException:
  Connection refused:host=integration2.treetechnologies.net,port=2810
  vmcid: 0x4942f000  minor code: 3586  completed: No]**

[在我的 WebSphere 服务器中,我打开了引导地址,它的默认端口为 2809。]

4

0 回答 0