[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Naming, @JNDI and OnDemand
alesj
do-not-reply at jboss.com
Mon May 11 10:53:05 EDT 2009
"alesj" wrote :
| What to do? :-)
| (a) have OnDemand stay in Pre_Install
|
PreInstall is too soon, as we don't have the MetaData fully populated till then.
e.g. we only know how to match @JNDI with AOP lifecycle in Described state
While moving aop lifecycle to describe
| <lifecycle-describe xmlns="urn:jboss:aop-beans:1.0"
| name="JNDIPreInstallAdvice"
| class="org.jboss.naming.microcontainer.JNDIOnDemandLifecycleCallback"
| classes="@org.jboss.naming.microcontainer.JNDI">
| </lifecycle-describe>
|
and this hack
| KernelControllerContext context = getControllerContext("Test", ControllerState.NOT_INSTALLED);
| change(context, ControllerState.DESCRIBED);
| assertBinding("Test", "Hello");
|
then the OnDemand test works.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230087#4230087
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230087
More information about the jboss-dev-forums
mailing list