I run into a similar problem with EJB handles:

BeanA is on host1, JBoss1
BeanB is on host2, JBoss2

BeanA creates an EJB handle to one of its entity beans and saves it in a
file or database. BeanB somehow gets the serialized handle, deserializes
it, and attempts to use it. This does not work: JBoss2 does not attempt
to contact the remote server on host1.

Francisco
--
Francisco Reverbel, Assistant Professor
Department of Computer Science                      [EMAIL PROTECTED]
University of Sao Paulo, Brazil        http://www.ime.usp.br/~reverbel/

On Wed, 25 Apr 2001, Anatoly Akkerman wrote:

> 
> It seems to me that there is a bug in JNP NamingContext.checkRef() method
> 
> Here is when I encounter
> 
> BeanA is on host1, JBoss1
> BeanB is on host2, JBoss2
> 
> BeanA is supposed to call BeanB, so it has an entry in jboss.xml that maps
> <ejb-ref>ejb/BeanB</ejb-ref>
> 
> to <jndi-name>jnp://host2:port/testapp/BeanB</jndi-name>
> 
> After obtaining the LinkRef and resolving it, JNP does not contact the
> remote server on the remote machine (checkRef() only obtains a new Naming
> for the server if the current one is null, which is wrong in this case of
> a remote reference, since we are leaving the current Naming of the local
> machine and have to contact the remote now). One way to fix it is to
> remove this if (naming == null)
> 
> around checkRef() body but it would obviously hurt performace. Any better
> ideas?
> 
> -------------------------------------------------------------------------
> Anatoly Akkerman
> Computer Science Dept.
> Courant Institute of Mathematical Sciences, NYU
> 719 Broadway, #715                      Tel: 212 998-3525
> New York, NY 10003                      Fax: 212 995-4123
> -------------------------------------------------------------------------
> 
> 
> _______________________________________________
> 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