0

I tried to configure InitialContext in WebsphereMQ 7.5.0 and my JmsAdmin.config file is like:

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

When I run JmsAdmin in Linux I got the below exception:

[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]**

[And in my WebSphere Server i opened bootstrap address it is having default port as 2809.]

veeras
  • 61
  • 1
  • 4
  • 11
  • Seems like you configured your application to access the bootstrap port on 2810, and you're getting an error. Later, you claim that your WebSphere Server is configured to use bootstrap port 2809... what am I missing here? – Isaac Sep 12 '12 at 06:17
  • Yes you are right lsaac. I checked my Websphere server bootstrap default port id is : 2809(bydefault 2809 is there ,i am not configured this port), where i did wrong ? & where i need to change ? – veeras Sep 12 '12 at 11:40
  • i tried with the PROVIDER_URL:corbaloc:iiop:localhost:2809 .Even it is showing the same error . – veeras Sep 12 '12 at 11:46
  • The bigger question here is why are you using JMSAdmin rather than the WebSphere App Server panels? Is there something you wish to set that either the native panels or custom properties dialogs don't let you get to? – T.Rob Sep 12 '12 at 19:14
  • Hi T.Rob thanks for you suggestion.I am biggener in Websphere.I have Websphere MQ(created Queues in Linux) in Linux & WAS in Windows. Now i need to configure connection pooling.My boss is configured these things i can't change it.So please give me some steps how to do in Linux. Thanks – veeras Sep 14 '12 at 07:53

0 Answers0