Well, It is working now.
I changed the *-aop.xml file to be:
<aop>
|
| <bind pointcut="execution(* com.jboss.ebank.TellerBean->*(..))">
| <interceptor class="com.test.TestInterceptor"/>
| </bind>
|
|
|
| </aop>
The Interceptor class is:
public class TestInterceptor implements Interceptor
| {
| public String getName() {
| return "TestInterceptor";
| }
|
| public Object invoke(Invocation invocation) throws Throwable
| {
| try
| {
| MethodInvocation mi = (MethodInvocation)invocation;
| System.out.println("@@@ Start TestInterceptor for: " +
mi.getMethod().toString());
| return invocation.invokeNext();
| }
| finally
| {
| System.out.println("@@@ End TestInterceptor");
| }
| }
| }
I created a jar file that includes the TestInterceptor class, and put it under
the jboss-4.0.0\server\default\lib folder. (I am using the default server)
I added the following system property definition to the JBoss run.bat:
set JAVA_OPTS=%JAVA_OPTS%
-Djboss.aop.path=%JBOSS_HOME%\server\default\deploy\jboss-aop.deployer
Thanks
SuDing
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859588#3859588
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859588
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development