Posted: Wed Sep 03, 2003 2:33 pm Post subject: Setup external JMS client to access WebSphere AppServer
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?
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