"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="(a)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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...