Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Two CMR entity beans in two separate jars?

 
John King
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Can we put two CMR entity beans in
two jars separately? I think EJB2.0
requires them in the same jar file, but
I'm not sure. Can anyone confirm it?
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by CMR?
And why do they need to be in the same jar? You can have many beans runnning in the same server from different jar files.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For beans to participate in a CMR (Container Managed Relationship) they must be located in the same ejb-jar.
 
John King
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chris.
What about Local interface?
Do I need to put the two EJBs in same jar if one
EJB calls another EJB using Local interfaces, e.g., session EJB calls an entity EJB using
Local interfaces?
I think it is OK to put them separate jars as
long as them are is same JVM (or container).
 
Volodymyr Shram
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John King:

I think it is OK to put them separate jars as
long as them are is same JVM (or container).

You can put many separate jars with EJBs in one ear file and have connect between session beans from one jar to another inside this common ear via local interfaces.
Regards, Volodymyr
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!