• Post Reply Bookmark Topic Watch Topic
  • New Topic

are these beans required to be in same ejb-jar?

 
Prakash Saswadkar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have bean A and bean B. In my ejb-jar consider following situations

1. bean A has <ejb-ref> (remote ejb references) for bean B.
Is it required that bean B must be declared in same ejb-jar file? Is there not a way to declare the reference specifying the path of other ejb-jar(such as ejb-link)?
More over cant we use <ejb-ref> when my beans are located in different ejb containers?

2. bean A has <ejb-local-ref> (local ejb references) for bean B.
Is it required that bean B must be declared in same ejb-jar file? Is there not a way to declare the reference specifying the path of other ejb-jar(such as ejb-link)?

In this situation I understand that both must exist in same container.

3. bean A and bean B are entity beans with cmr relations.
Is it required that bean B must be declared in same ejb-jar file? Is there not a way to declare the reference specifying the path of other ejb-jar(such as ejb-link)?

In this situation I understand that both must exist in same container.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!