JBoss Community

Re: PortableRemoteObject.narrow() returns null

created by Brian Lara in JNDI and Naming - View the full discussion

This is exactly how I have and jndi lookup is successful. Only when I do PortableRemoteObject.narrow(), it just returns null. there is no classcastexception or any other exception.

Do I have to include any jboss descriptor file in my EJB Client jar, currently it only has remote and home interfaces.

Websphere doesn't need any special descriptor file and stubs get generated during deploy time.

 

When I deploy the ejb client jar from my websphere server (which has stubs in it) in JBoss, I no longer get null but Home object is returned.

 

So, I suspect it is something to do with missing stubs or dynamic stub not working in Jboss due to some reason. Look forward to your help.

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community