I am trying to access some code deployed on IBM WAS6 from an application client running on
JBOss. when i am trying to do the jndi lookup for eis/XUConnectionFactory which is a JNDI name for a Resource Adapter, though i am not getting any corba or nameNotFound exception but the object which is returned is null.
I think its some kind of Marshalling and Un-Marshalling issues.the way IBM JVM is marshalling the object stream and the way SUN JVM is retrieving that Object.
But i am completely unaware of the solution.
can somebody please help me in this regard.The code which i am using is as below:
...
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
prop.put(Context.PROVIDER_URL,"iiop://<ServerIP>:<Bootstrap_Port>")
Context ctx = new InitialContext(prop);
Object obj = ctx.lookup("cell/nodes/<myNodeName>/servers/<Server_name>/eis/XUConnectionFactory");
if somebody had this problem or know the solution please help me.
Jars which i am using are:
Additional jars:--
naming.jar
namingclient.jar
namingserver.jar
ras.jar
JRE System Library[jre1.5.0_02]:--
rt.jar
jsse.jar
dnsns.jar
sunjce_provider.jar
sunpkcs11.jar
In JBOSS 4.0 runtime:--
jboss-j2ee.jar
javax.servlet.jar
javax.servlet.jsp.jar
activation.jar
mail.jar