Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Common remote and home for 2 EJBs  RSS feed

 
Narendran Nair
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys ...

can 2 EJB's share a common home and remote interface ....

any one like to comment on this !

regards
Naren
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there shall be any problem in two ejbs sharing common home and remote interfaces so long they have different jndi names.

But why do you want two ejbs to share common interfaces as the interfaces will be exposing same methods for ejbs implementing them. Is it that you want different implementations for same exposed methods.
 
Kareem Qureshi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using common code for two beans. As Damanjit said each bean will have its own DD files.

Kareem
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!