This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Accessing EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Accessing EJB " Watch "Accessing EJB " New topic

Accessing EJB

Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
After having built an EJB 2 Session bean what does the client need to access the bean deployed on the server. Does he need some jar files to access the stub ?
Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
On the client side we call PortableRemoteObject.narrow (o, MyEJBHome.class); so the MyEJBHome must be available on the client side. My question is what all must be given to the client so that he can set these in the class path ?

Anyone ?
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

The client will need access to the bean interfaces(remote/local interface and home/localhome interface). No need of the actual implementation class. If remote classloading is enabled then the client will not even require the interfaces.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Accessing EJB
It's not a secret anymore!