Posted By:
Rohit_Shirodkar
Posted On:
Friday, July 25, 2003 11:36 AM
Hi Prakash,
Got another breakthrough after about 4-5 days. Although I am not yet successful, I feel that I am pretty close. I am also as you are trying to do a simple JMS stuff in WSAD 5.0.
I also got the exception.
java.lang.IncompatibleClassChangeError: com.ibm.CORBA.iiop.ORB method createObjectURL(Ljava/lang/String;)Lcom/ibm/CORBA/iiop/ObjectURL
I am giving a small sample of the code that I have.
Properties env = new Properties( );
env.put(Context.SECURITY_PRINCIPAL,"guest");
env.put(Context.SECURITY_CREDENTIALS,"guest");
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
InitialContext jndi = new InitialContext(env);
// Look up a JMS connection factory
TopicConnectionFactory conFactory =(TopicConnectionFactory)jndi.lookup("TopicConnFactory");
Also what is important is the jar files that you add and the order of these jar files.
runtimes/base_v5/java/jre/lib/rt.jar
runtimes/base_v5/mqjms/Java/lib/jms.jar
runtimes/aes_v4_jars/lib/ns.jar
wstools/eclipse/plugins/com.ibm.websphere.aes.v4_4.0.4/lib/iwsorb.jar
runtimes/base_v5/lib/naming.jar
All these folders are under the
Program Files/IBM/WebSphere Studio/
Now I am getting the following exception
javax.naming.NameNotFoundException: TopicConnFactory
where TopicConnFactory is the lookup for the TopicConnectionFactory.