It is deployed already but it is possible to have sometimes several containers with the same beans.
For instance in the BB module, each bean is deployed twice (although it could be once), there is one read-only container optimized for speed and one read-write container used for updates. Of course both containers communicates to invalidate entries. In addition, the fact we use several time the same bean deployed is necessary because you are not authorized to create a relationship between deployments. So the only way to have UserEJB + PostEJB (in the forum) is to deploy again the UserEJB in the same ejb-jar the forum is. (It may seem a bit stupid, but it is actually). I don't know if hibernate allow that kind of stuff. Otherwise if you don't want to deploy a new UserEJB, you have to use user in your module with the concept of user ID. For instance on the PostEJB we would have get/set UserId(Integer) instance of get/set User(UserEJBLocal) and I prefer the second one rather than the first one. <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825583#3825583">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825583>Reply to the post</a> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
