|
From: <ale...@jb...> - 2006-07-01 12:14:50
|
The more I think about it the more I get convinced that to depend on a specific EJB is not a good idea. The right service to depend on would be the EjbModule. Suppose there is an EJB module that contains to EJBs A and B. The startService will be called on one of them first then on the other one. So, if A returns from its startService but the B's startService hasn't yet been called, can we assume that the A bean is usable? The may have CMR or call each other, etc So, I think, it's ok to assume that in EjbModule.startService we can use the DataSource. And so, we can complete the initialization of all the PMs before starting the EJB containers. What do you think about this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954804#3954804 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954804 |