The question is: How does JBoss AOP find jboss-aop.xml files?

If you run JBoss AOP standalone it searches for all META-INF/jboss-aop.xml files within your classpath. Standalone AOP does a ClassLoader.getResources("META-INF/jboss-aop.xml"); So, any JAR in your classpath that has META-INF/jboss-aop.xml will be parsed.

Now, if you're running within the JBoss application server you'll need to do things differently. Either

1) Put a foobar-aop.xml file within the /deploy directory. By "foobar", I mean any filename

2) Modify conf/base-aop.xml and add stuff there

3) Or, create a foobar.aop archive. An AOP archive is a JAR, but in the META-INF directory there should be a jboss-aop.xml file.

http://www.jboss.org/index.html?module=html&op=userdisplay&id=developers/projects/jboss/aop#packaging



Bill



Giovanni Formenti wrote:

Hallo!
I try an example for AOP in my JBoss4 env.
(http://www.madplanet.com/jboss-docu-wiki/Wiki.jsp?page=40.AOP.Simple.Exampl
e)
It doesn't work!
I create jboss-aop.xml in the META-INF dir, i create the interceptor and an
EJB that call a POJO class.
Nobody have any idea why it doesn't work?!
I need some other configuration item?
Thanx for any answer!

Gio



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-- ================ Bill Burke Chief Architect JBoss Group LLC. ================



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to