Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
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.
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic