[jboss-user] [JBoss AOP] - Re: Cannot intercept a method
bbarin
do-not-reply at jboss.com
Tue Jan 25 10:20:47 EST 2011
bbarin [http://community.jboss.org/people/bbarin] created the discussion
"Re: Cannot intercept a method"
To view the discussion, visit: http://community.jboss.org/message/583094#583094
--------------------------------------------------------------
Hi,
After some digging around the information spread over the web, I have found the solution:
* Enable load time weaving in the file JBOSS_HOME\server\production\deploy\*jboss-aop-jdk50.deployer\META-INF\jboss-service.xml*
* Copy JBOSS_HOME\server\production\deploy\jboss-aop-jdk50.deployer\pluggable-instrumentor.jar to JBOSS_HOME\lib\endorsed folder
* Enable the agent in run.bat adding the following line:
set JAVA_OPTS=%JAVA_OPTS% -javaagent:%JBOSS_ENDORSED_DIRS%\pluggable-instrumentor.jar
*Be sure you have:*
- Your aspects deployed in the "*deploy*" folder either a .jar or .aop file
- In case of .jar: You must have a <filename>*-aop*.xml in the "*deploy*" folder (preferred, more flexible)
- In case of .aop: Only be sure there is *META-INF/jboss-aop.xml* containing the aspect definition in your package
Cheers,
Bruno
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/583094#583094]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110125/e8eea323/attachment-0001.html
More information about the jboss-user
mailing list