ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Setup external JMS client to access WebSphere AppServer

Post new topic  Reply to topic
 Setup external JMS client to access WebSphere AppServer « View previous topic :: View next topic » 
Author Message
mkong66
PostPosted: Wed Sep 03, 2003 2:33 pm    Post subject: Setup external JMS client to access WebSphere AppServer Reply with quote

Newbie

Joined: 23 Jun 2003
Posts: 5

Hi,

I am trying to develop a standalone JMS/JDBC application that uses the WS appserver as a transaction manager to provide 2-phase-commit. The resource manager for the JMS and JDBC will be MQseries and Sybase respectively. I have setup WASQueueConnectionFactory and WASTopicConnectionFactory on the app server side. I checked the name space by using the dumpNameSpace.bat util and verified that the Factories are populated correctly. The provider URL is: iiop://localhost:2809.

After this, I tried to access the Factory objects from outside of the app server, the code is as follows:
...
Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
Context ic = new InitialContext(env);
Object o = ic.lookup("nodes/localhost/servers/server1/D.WSQCF");
...

D.WSQCF is the jndi name of the object. I got the following exception:

org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.inprise.vbroker.orb.SE.read(SE.java:2
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:776)
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:662)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at com.inprise.vbroker.orb.RequestImpl._invoke(RequestImpl.java:208)
at com.inprise.vbroker.orb.RequestImpl.invoke(RequestImpl.java:134)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
...

The same exception is raised even after I changed the port from 2098 to something that is invalid. So I am sure the link between the app server and the client is not correctly established.

My setup: MQ Series 5.0, WebSphere Studio Application Developer 5.0 for Windows (AppSer 5.0 is installed with it), Websphere Extended Transactional clients. All applications, including the test client, are installed to the same machine.

Do I need to do anything from the client side? Documents about external client of a AppServer is very lacking from IBM. Can you point me to the right one if you know of any?

Any advise are greatly appreciated.

MK
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Setup external JMS client to access WebSphere AppServer
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.