[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: expressing dependent states

jhalliday do-not-reply at jboss.com
Wed May 21 10:53:22 EDT 2008


> You're breaking the MBean rules.
> You shouldn't expect some dependency to be started in your create lifecycle.
> I'm surprised this worked when you were an MBean? Maybe just luck :-)

Probably because I've changed the TransactionManager to do more of its setup in create() rather than start(). In my view the real problem is that CorbaORBServer does things in startService() that actually belong earlier in the lifecycle. Pretty much everything other than orb.run() infact. But since there are no real guidelines on what goes where in the lifecycle it's all a matter of opinion. Since it can't be guaranteed that the authors of two entities have the same opinion, there needs to be a flexible wiring of state dependencies.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152375#4152375

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152375



More information about the jboss-dev-forums mailing list