[JBoss AOP] New message: "How a field annotation to weave with an aspect?"
by MK Song
User development,
A new message was posted in the thread "How a field annotation to weave with an aspect?":
http://community.jboss.org/message/528012#528012
Author : MK Song
Profile : http://community.jboss.org/people/mksong
Message:
--------------------------------------------------------------
Hello,
I wanted to test 'field annotation' using JBoss AOP.
However, the POJO, *BankAccount was not be able to be enhanced.*
Can you help me out to weave it with an aspect?
* Very simple program has been attached.
C:\..\JBossAOPTest4>ant
Buildfile: build.xml
prepare:
compile:
[delete] Deleting directory C:\tmp\aoptest\JBossAOPTest4\classes
[mkdir] Created dir: C:\tmp\aoptest\JBossAOPTest4\classes
[javac] Compiling 4 source files to C:\tmp\aoptest\JBossAOPTest4\classes
aopc:
[aopc] log4j:WARN No appenders could be found for logger (org.jboss.aop.instrument.InstrumentorFactory).
[aopc] log4j:WARN Please initialize the log4j system properly.
[aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\SecurityFieldAnnotation.class
[aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\SecurityFieldAspect.class
* [aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\BankAccount.class*
[aopc] [no comp needed] C:\tmp\aoptest\JBossAOPTest4\classes\bank\Bank.class
[aopc] Build Successful: 547 ms
run-compile-time:
[java] [DBG] credit: 777
BUILD SUCCESSFUL
Total time: 3 seconds
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528012#528012
16 years, 2 months
[JBoss Microcontainer] New message: "Re: Processed BMD as an input to a deployer"
by jaikiran pai
User development,
A new message was posted in the thread "Processed BMD as an input to a deployer":
http://community.jboss.org/message/528010#528010
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> alesj wrote:
>
> Why it doesn't work is b/c you're dependant on the Deployers order.
> And even if BMDDeployer kicked in eariler, it wouldn't be done right.
> e.g. your DeployerB is used before BMDDeployer installs XYZ into Controller, but than XYZ' dependency might be missing
Makes sense.
> alesj wrote:
>
>
> What you need to do is the following.
> Instead of attaching BMD, you should simply install it into Controller -- with proper CL metadata, etc ...
>
>
>
>
Thanks, that helped. I followed that and have my deployer chain working now.
> alesj wrote:
>
> Plus, add proper dependencies between underlying Deployment[Unit] and your new BMD's KernelControllerContext.
>
>
I haven't looked into this detail yet - will do it tomorrow
Thanks for the help!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528010#528010
16 years, 2 months