I am trying to execute a remote method on a J2EE server EJB that requires
passing the client as a parameter in the call. The client issues the
UnicastRemoteObject.exportObject() prior to the remote method. An exception
occurs as shown below (modified for myClient, myEJB, and myMethod):
java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0 No; nested exception is:
org.omg.CORBA.INV_OBJREF: myClient not exported or is a JRMP stub
minor code: 0 completed: No
at
com.sun.corba.se.internal.util.Utility.autoConnect(Utility.java:179)
at
com.sun.corba.se.internal.javax.rmi.CORBA.Util.writeRemoteObject(Util.java:2
21)
at javax.rmi.CORBA.Util.writeRemoteObject(Util.java:110)
at myEJBInterface_Stub.myMethod(Unknown Source)
The error occurs regardless whether the -iiop rmic option has been used when
generating the client stub. There are no problems when using the same code
to connect to a regular RMI server instead of the EJB/J2EE server.
Does anyone know of any restrictions in passing rmi client objects to J2EE
servers? Any help is greatly appreciated as I have been spending way too
much time trying to resolve the problem.
Ron
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".