• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB design issues  RSS feed

 
Pallavi Sikdar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one tell me why is there a separation of home interface and remote interface? Why not one interface as in RMI? Is there some design pattern involved here?
thanks.
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Home interface holds all the lifecycle methods like create/remove/findBy while the remote/local interface contains the business methods. Probably in order not to duplicate more than necessary the creation logic, the sun engineers placed these methods into the home interface, and that is why there is only one EJBHomeObject used for creating/finding/removing all the EJBObjects used inside the application.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Think Tanks",
Please take a moment for reading the naming policy and proceed to modify your username accordingly.
Thanks.
 
Pallavi Sikdar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lasse , I really was not aware of the naming policy i have modified my user name accordingly.
Thanks to u too sergei, you gave me a very big hint.!!! Things are a lot more clearer now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!