users@glassfish.java.net

Using Weblogic as external JNDI resource

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 Jan 2008 05:02:33 PST

Hi,

i have been trying to configure an external JNDI resource in my Glassfish V2 server, so that i can use a local JNDI name to lookup an EJB deployed on a remote Weblogic 10 application server. Unfortunately so far i had no success but recieve an Exception whenever i try to save the configuration:

java.io.NotSerializableException: com.sun.corba.ee.impl.orb.ORBImpl

As far as i know this is the object type that should be returned by the remote server, at least that's the object type i recieve when doing a regular look up (which is working). So i assume that the JNDI-Search parameter is set correctly but that either the context factory needs to be changed (at the moment i use com.sun.appserv.naming.S1ASCtxFactory but also tried com.sun.enterprise.naming.SerialInitContextFactory resulting in the same Exception), or i specified an invalid resource type, which i guess is the most likely option as i must admit i don't really know what should go there. Should i put there the type of the remote interface, remote home interface, EJBHome, EJBObject or something completely different? I tried the different combinations but all resulted in the same error, so i hope someone can point me in the correct direction.

The EJB version is 3.0 but annotated with the @RemoteHome annotation to allow 2.x style lookups which are working using the same corbaname etc. so i would assume that the callee side is set up properly and the error is on the caller side.

Any tips are welcome,
Chris
[Message sent by forum member 'candlejack' (candlejack)]

http://forums.java.net/jive/thread.jspa?messageID=255761