[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Naming, @JNDI and OnDemand

alesj do-not-reply at jboss.com
Tue May 12 04:35:59 EDT 2009


"alesj" wrote : 
  | What to do? :-)
  | (a) have OnDemand stay in Pre_Install
  | (b) add extra Not_Installed AOP lifecycle hook
  | 
As seen, none of these two will work.
Only moving On_Demand to Describe will work,
but that defeats the purpose of On_Demand.

The only solution I can think of right now are explicit instructions 
to put On_Demand bean into JNDI.
e.g.

  | <jndi-on-demand bean="some-existing-bean" ...
  | 
with a programmatic/api support as well.

For non On_Demand beans the @JNDI will work.

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

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



More information about the jboss-dev-forums mailing list