-
1. Re: jboss-aop configuration help needed
kabirkhan Dec 2, 2008 10:56 AM (in response to csr1978)Modify your jar to have the .aop extension, put the jboss-aop.xml into the .aop archive's META-INF directory. Deploy the file to the deploy folder.
See the injboss example that comes with the download for more examples -
2. Re: jboss-aop configuration help needed
csr1978 Dec 2, 2008 11:15 AM (in response to csr1978)Kabir,
To be more specific i am trying to configure logging for EAR file. So, my interceptor should be accessible by both web(.WAR) and ejb(.JAR) files.
I created mylogging.aop file with jboss-aop.xml file in meta-inf dir. and copied it to deploy dir of jboss. I still get:java.lang.ClassNotFoundException: log.logging.trace.MyMethodInterceptor
do i have to add this .aop file to application.xml and copy the .aop file to root of EAR file? Please suggest me.
Thanks,
Srikanth. -
3. Re: jboss-aop configuration help needed
csr1978 Dec 2, 2008 11:53 AM (in response to csr1978)Kabir,
I tried injboss->SimpleInterceptor example. I build the aopexample.ear file and deployed it. When i run it i could see only the println statements from ExampleValue and ExampleSessionBean but i couldn't see any println statements from SimpleInterceptor like <<< Entering SimpleInterceptor:
What am i doing wrong? I do not see any exceptions though? -
4. Re: jboss-aop configuration help needed
csr1978 Dec 2, 2008 11:55 AM (in response to csr1978)BTW i am using JBoss 4.2.0GA.
-
5. Re: jboss-aop configuration help needed
kabirkhan Dec 2, 2008 12:03 PM (in response to csr1978)Turn on loadtime weaving. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=110955
-
6. Re: jboss-aop configuration help needed
csr1978 Dec 2, 2008 1:45 PM (in response to csr1978)thank you. It worked!