File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes local and remote 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 "local and remote ejb" Watch "local and remote ejb" New topic

local and remote ejb

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
It has been quite sometime since i refreshed my j2ee. I was having a discussion with one of my friends. I was telling him that if one has local ejb's and then later on decides that the server has to be clustered and the ejb / web layers are going to be in separate servers. I told him, the code has to be modified to change the local ejbs to remote ejb's (i.e) EJBLocalHome has to be changed to EJBHome so on and so forth. But he strongly denied it. he says it should just be a matter of changing the ejb-jar.xml.
Can somebody clarify?

Thanks & Regards,<br />Nijeesh.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Sure, a remote client is, well, remote. There is no getting away from the need to recode for remote home and component interfaces, to pass serializable objects around, to handle RemoteException, etc.

If your friend is so sure that he is right, then why not invite him to demonstrate how his solution works?

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
I agree. Here's the link:
subject: local and remote ejb
jQuery in Action, 3rd edition