Hi!

Robert Taylor wrote:
> I have created and successfully deployed a TestBean.
> It uses an object which makes an RMI call to another object to do some work.
> Sometimes the following stack trace is printed upon looking up the RMI
> object
> although no exception is thrown.
<snip>

> Subsequent calls to methods on the RMI object throw
> java.rmi.NoSuchObjectException
> 
> It looks as though the object is becoming unbound from the naming service.
> That's guess.

Are you binding it into our JNDI tree? (I'm guessing yes)
Are you storing the reference to your remote object so that it is not
GC'ed? (I'm guessing no)

If both above guesses are right, then the fix is to hold on to your
remote object somehow. If you are creating it through an MBean, keeping
a reference to it in the MBean would be a good solution.

regards,
  Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to