Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

local and remote ejb

 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic