To complete our recent answer, first, we do not specify any url provider in the 
jndi.properties (as explained upper) so it may be auto-generated by the container.

Then, in our source code, we call the constructor InitalContext with no arguments :

initialContext = new InitialContext();

Then for remote object (all EJB sessions objects) :

Object obj = initialContext.lookup(ejbReferenceComponent);
Object home = PortableRemoteObject.narrow(obj, homeClass);

<String ejbReferenceComponent> is a parameter to identify EJBs.
<Class homeClass> is a parameter to identify waiting class.

Is it possible that the JBOSS implementation (transparent for them) can make a lookup 
using RMI access instead of local stub access ?

Thank you for your support.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844135#3844135

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844135


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to