Thanks Dan, you the man....This may be our problem.

The DGC stuff sounds kind of stupid.  This kind of stuff is frowned upon in
the CORBA world for good reason.

Bill

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch
> (Dan Christopherson)
> Sent: Monday, June 25, 2001 11:59 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-dev] Can Home references get stale?
>
>
> taking a _quick_ look into the java.rmi.dgc package it looks like Remote
> references (which your Home references now are - Right?) can indeed get
> stale. the DGC ackage works on a lease basis, where each lease has a
> certain duration. Not that I know what to do about it at this point.
>
> -danch
>
> Bill Burke wrote:
>
> > We save a reference to our homes in a static variable in
> various classes
> > so that we don't have to keep looking it up.
> >
> >
> >
> > ------------------------------
> >
> > class SomeClass
> >
> > {
> >
> > public static MyBeanHome myBeanHome = null;
> >
> >
> >
> > public void init()
> >
> > {
> >
> > InitialContext ctx = new InitialContext();
> >
> > myBeanHome = (MyBeanHome)ctx.lookup("MyBean");
> >
> >
> >
> > }
> >
> > }
> >
> > ----------------------------------
> >
> >
> >
> > Jetty/JBoss(2.2.1) has been running for a few days now and
> we're getting
> > the folloowing exception when we call a finder on SomeClass.myBeanHome
> >
> >
> >
> > java.rmi.MarshalException: Invalid remote object
> >         <<no stack trace available>>
> >
> > If we don't use myBeanHome and instead use one freshly looked up in the
> > InitialContext, the finder works fine.
> >
> >
> >
> > BTW, we have <Optimized> set to False in standardjboss.xml so all
> > parameters are RMIized.  We've had our service running for more than a
> > few days before and never got this problem,  we used to have
> <Optimized>
> > set to True.  That's the only thing I can think that's different.
> >
> >
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Bill
> >
> >
> >
>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to