Forums Register Login

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

+Pie Number of slices to send: Send
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.
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 689 times.
Similar Threads
ejb-ref question
Relationships doubt
Cleared SCBCD last week.. some notes
Error while deploying ear in WEBLOGIC 8.1.3
weblogic 10.3.2 remote-client-timeout not working
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:17:41.