Posted: Thu Mar 09, 2006 1:34 am Post subject: how to lookup MQQueueConnectionFactory,MQQueueManager
Newbie
Joined: 02 Mar 2006 Posts: 6 Location: India
Hi to all members.I am new to this group.
I am trying to lookup the connection factory and q manager by using the following code.I am doing this lookup from the system where the Websphere AS is running and the MQserver is located on another system.
Hashtable p = new Hashtable();
p.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
p.put(Context.PROVIDER_URL, "iiop://remoteIP:2809");
jndiContext = new InitialContext(p);
mqConnectionFactory = (MQQueueConnectionFactory) jndiContext.lookup("jms/TESTQM");
String qMgr = mqConnectionFactory.getQueueManager();
qManager = new MQQueueManager(qMgr);
i am using websphere 5.
websphere AS and MQ server are both on Windows platform
context factory was created successfully but i am getting ORB exception
can anyone plz help me? which jars are to be added and if possible can u send me sample code.
can u plz tell me other means of lookup
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum