-
1. Re: How to write aop in jar?
bill.burke Apr 8, 2004 8:08 AM (in response to jerkzzz)Please read this part of the tutorial (comes with download) and get back to me:
http://jboss.org/wiki/Wiki.jsp?page=Packaging -
2. Re: How to write aop in jar?
jerkzzz Apr 9, 2004 8:29 AM (in response to jerkzzz)I follow the steps,but it isn't ok.
The example is not deployed in jboss.
But I place the jar into one ear,and deploy the ear in Jboss4.0 DR3.
How can I finish it?
Thanks. -
3. Re: How to write aop in jar?
bill.burke Apr 9, 2004 6:02 PM (in response to jerkzzz)Crap, sorry.....
Forgot. In JBoss 4 DR3, load-time instrumentation is turned off by default. Look in jboss-4.0.0DR3/server/default/config/jboss-service.xml
Search for AspectManagerService. This is a switch there for turning on load-time instrumentation.
Bill -
4. Re: How to write aop in jar?
jerkzzz Apr 11, 2004 9:16 PM (in response to jerkzzz)I have enable EnableTransformer as true, so when I place jboss-aop.xml in the deploy/ directory, it can work.
I read the source code, I found that deployer only deploy .aop file. But when I write xxx.aop in application.xml, xxx.aop isn't deployed.
Can't JBoss AOP apply to ear application?
Thanks. -
5. Re: How to write aop in jar?
bill.burke Apr 12, 2004 7:16 AM (in response to jerkzzz)I have run with a .aop file embedded within a .sar file. Maybe it doesn't work for embedded .ears. I'll have to get back to you.
Bill -
6. Re: How to write aop in jar?
jerkzzz Apr 12, 2004 10:23 PM (in response to jerkzzz)Thanks a lot.
And I hope that an ear example with AOP would be in Jboss4.0 Final Release.