我尝试在WebsphereMQ 7.5.0中配置InitialContext
,我的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 Server中我打开了bootstrap地址,它的默认端口是2809。]