[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Obtain Kernel from unspecified Context

ALRubinger do-not-reply at jboss.com
Fri May 16 11:54:24 EDT 2008


"adrian at jboss.org" wrote : * An invalid assumption in your argument
  | anonymous wrote : 
  |   | However, this introduces a precondition that all POJOs with dependencies on MC Beans are installed into the MC itself. In many cases, this is not possible.
  |   | 
  | 
  | There are at least four ways to inject objects that are not managed by the MC.

No, I need to inject *into* a bean not managed by MC. 

I'll proceed for now by letting the Host environment maintain a reference to the Kernel, as you'd suggested.

My stance is that it's not always possible to do pure IoC.  Seems like you object to my use of MC as an Object Store

* JNDI ObjectFactory.getObjectInstance() < Creates new instance of the Object Factory on every lookup
* Struts Action Handler
* Servlet
* Anything else not instantiated by the developer

S,
ALR

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

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



More information about the jboss-dev-forums mailing list