I have completed the first part of this, so that we get a proxy created for the
MainDeployer. The AspectManager and AspectDeployer are now created in bootstrap-beans.xml,
and I have moved these to the jboss/lib directory:
-jboss-aop-jdk50.jar
-jboss-aop-mc-int.jar
-trove.jar
-javassist.jar (was there already)
-jboss-aop-deployer-jdk50.jar (The parts of the jboss-aspect-library.jar relating to
deployment, i.e. org.jboss.aop.deployers and org.jboss.aop.deployment)
The bootstrap-beans.xml initialises the AspectManager with the necessary aop.xml so that
this is available when the MainDeployer is instantiated, so that we get a proxy created
for that.
I have kept the jboss-aop-jboss5.deployer, it now contains a bean called
"AspectLibrary" whose job is to deploy the base-aspects.xml (containing the
@SecurityDomain, @Tx etc. interceptors) and the old aspect library (minus the stuff that
now lives in jboss-aop-deployer-jdk50.jar). Services that previously depended on the
AspectDeployer, and which need the aspect library aspects, should now depend on the
"AspectLibrary", I have updated EJB 3 to do this.
I have created some stupid implementations of
org.jboss.profileservice.aop.MainDeployerAspect and
org.jboss.profileservice.aop.PersistAspect in the system module to verify that things
work. MainDeployerAspect is functional, and I will look at the
PersistAspect/ManagedProperty part tomorrow.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999719#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...