File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes About Remot session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "About Remot session bean" Watch "About Remot session bean" New topic

About Remot session bean

Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
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

Best Regards,
Moayad Abu Jaber
SCJP 5.0, SCWCD 1.4, SCBCD 5.0
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951

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


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
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

Joined: Aug 10, 2007
Posts: 183
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,


SCJP5 | SCBCD5 | SCEA5 Part 1
Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
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

Joined: Jan 15, 2008
Posts: 80
I wait your source man
I agree. Here's the link:
subject: About Remot session bean
It's not a secret anymore!