----- Original Message ----- 
From: "Jason Dillon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 12:10 PM
Subject: Re: [JBoss-dev] Remote Proxies do not know the server they came from


> I spent some time (long ago...) fixing this very problem, but I have not
> really had time to integrate it into the latest codeline.  I can put some
> more effort into fixing this soon.
> 
> Does anyone happen to know what the EJB spec says about handles and if they
> should return bean refs to the *exact* server which they came from?  I can
> not recall any real detail about handles except that they are used to allow
> clients to restore a reference to a given bean.
> 
No it does not require this and it would not make sense to be exact as the handle
should be valid across server restarts. The exact location of the server may
well change during the lifetime of the handle.

> Any ways, I do not think that this will take that long to fix.  I can
> probably make this optional too (via a property that will enable the new
> behavior).  The only problem that I remember running into was when the proxy
> is generated there isn't an easy way to find out what the provider url is for
> the current machine (in a non-jboss specific fashion).  Perhaps that has
> changed.
> 
> What I might do is force users who are interested in this, to provide some
> extra properties (or another jndi properties file) that specifies the exact
> environment properties required to restore a bean from a handle.
> 
You want the ability to specify the the jndi properties that are associated with
a handle in general because you can't determine what the correct hostname/ip
of the server machine is. It could be some internal name/ip that can't be used
externally.



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

Reply via email to