Thanks ... Look forward to that in the annotated format.
Actually, I find that a Lifecycle-Configure is probably the way to go, rather than doing
an .
One addendum, if somebody happens to try my code out, the aspect declaration works better
as:
| <aop:aspect xmlns:aop="urn:jboss:aop-beans:1.0"
| name="LifecycleAdvice"
| class="com.autodesk.lbs.service.mc.LifecycleInterceptor"
| method="handle"
| pointcut="
| execution(public void
$instanceof{com.autodesk.lbs.service.Service}->create())
| OR
| execution(public void
$instanceof{com.autodesk.lbs.service.Service}->start())
| OR
| execution(public void
$instanceof{com.autodesk.lbs.service.Service}->stop())
| OR
| execution(public void
$instanceof{com.autodesk.lbs.service.Service}->destroy())
| ">
| <property name="kernel">
| <inject bean="jboss.kernel:service=Kernel" />
| </property>
| <depends>LifecycleCallback</depends>
| </aop:aspect>
| [/cpde]
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067988#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...