I read About the remote session bean and i know we can call it and use it from different JVM. that's mean we can used from another PC or Server right ?
how can call the Remote session bean from different Server??
When I read the EJB 3.0 fifth edition from O'relly, I wait the JNDI chapter to see how can calling it but in this book didn't talk about that.
please anyone advice me
Session bean is never Remote. It provide remote interface to which you can access the bean using RMI/IIOP.
This definition from Mikalai study guide
The interface used by a remote client of a session bean is implemented by the container as a remote business interface (or a remote EJBObject interface), and the remote client view of a session bean is location-independent. A client running in the same JVM as the session object uses the same API as a client running in a different JVM on the same or different machine.
Use of a session bean's local business interface(s) or local interface entails the collocation of the local client and the session. The local client of an enterprise bean must be collocated in the same container as the bean. The local client view IS NOT location-independent.
I think that mean we can call or implements the Remote interface from another PC but the question how we can do it.
Thanks for you replay Narendra.
[ April 08, 2008: Message edited by: Moayad Abu Jaber ]
Here is an example for you to understand the concept:
The EJB bean
The remote interface
The jboss.xml file (for the binding JNDI)
The J2SE client
Hope it helps,
Sure you help me, that's what i ask about it exactly.
please you can give me the source, cause the EJB 3.0 fifth edition O'Reilly didn't talk about that. That same what I guessed we need to call it from JNDI.
thanks for your replay and your help.