Right, the name should be the full jnp url not just the local jndi name.

----- Original Message ----- 
From: "Alf Werder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 8:50 AM
Subject: Re: [JBoss-dev] Bug in jnp (handling references to remote JNDI servers)


> The problem is a lack of information, the handle and the proxy object 
> has. If you look into 
> org/jboss/ejb/plugins/jrmp/interfaces/EntityHandleImp.java, you can see 
> it. The implementation of 'getEJBObject()' simply calls 'new 
> InitialContext()' and gets the root context of JBoss2 on host2. To 
> reobtain the entity one needs the root context of JBoss1 on host1, where 
> the home interface of the baen is bound to 'name'.
> 
> The handle does not have the information, where to find its own home 
> interface. As far as I can see, not even the proxy object itself has 
> this information.
> 
> To fix this, all proxy objects need to know the host, they are 
> originating from. So the can say something like
> 
> Hashtable env = new Hashtable();
> env.put("java.naming.factory.initial", 
> "org.jnp.interfaces.NamingContextFactory");
> env.put("java.naming.provider.url", host);
> 
> new InitialContext(env).lookup(name);
> 
> 
> -alf
> 



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

Reply via email to