[jboss-user] [JBoss AOP] - Re: Netbeans - AOP

ykrishnaprasad do-not-reply at jboss.com
Tue Dec 19 18:39:54 EST 2006


Using JBoss-AOP in NetBeans:

Netbeans work bench ? go to Files(next to Projects)

In your project(regular java app) under ?src? create a folder ?META-INF?

Put your jboss-aop.xml in that folder with the interceptor information included

Comeback to ?Projects? ? in the project properties (right click) ? choose run and specify the VM option as ?-javaagent:C:\jboss-4.0.4.GA\server\default\deploy\jboss-aop-jdk50.deployer\jboss-aop-jdk50.jar? (or whereever the jar is)

This will tell the VM to start the AOP framework to start and when you run the application

This in turn will load the jboss-aop.xml and looks up if there are any interceptors listed

Under ?libraries? under the project see that the following jars are included:

jboss-aop-jdk50.jar
concurrent.jar
javaassist.jar
jboss-commons/jboss-common-client.jar
jboss-aspect-library-jdk50.jar
trove.jar

To add these libraries to the library list right click on libraries, choose ?Add jar/folder?. Then browse to the JBoss installation, then under default/server/deploy and within the subfolders you will see the jars.

When the project is deployed/run then the build project process within the run will copy the jboss-aop.xml to a meta-inf folder under build/classes(Files view)

You should be able to test the interceptors now.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995167#3995167

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995167



More information about the jboss-user mailing list