Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Remot session bean

 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Rancher,
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
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Session bean is never Remote. It provide remote interface to which you can access the bean using RMI/IIOP.

Thanks
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear Narendra,
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 ]
 
Benoît de Chateauvieux
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi 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,

Beno�t
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Beno�t de CHATEAUVIEUX,
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.
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wait your source man
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic