• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to handle CMR entity beans?

 
Glen Cai
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using CMR, and there are about 20 of them.
My entity beans are all related one way or other,
and they are packed in one jar file.
The deployment descriptors are becoming very large, and hard to maintain. Should I divide CMR entity beans into
small groups?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only Entity Beans that are packaged in the same ejb-jar can have CMR relationships with each other. Therefore if all of your Entities are truely related in some way then they must all reside in the same ejb-jar.
Typically it is easier to manage multiple ejbs in a single jar then it is to manage multiple ejb-jars. The other benefit is your ejbs will deploy faster in a single jar then in multiple jars (this is from my experiences with JBoss and WebLogic).
I suggest using a tool that helps you manage the descriptors like Xdoclet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!