Okay, I'll try: 

Here is the aspect code:

package aspect;

import org.jboss.aop.advice.Interceptor;
import org.jboss.aop.joinpoint.Invocation;
import org.jboss.aop.joinpoint.InvocationResponse;
public class myAspect implements Interceptor {

        public String getName() {
        return "myAspect";
        }

        
        public Object invoke(Invocation invocation) throws Throwable {
                        
                        System.out.println("Before!");
                        InvocationResponse r = (InvocationResponse) 
invocation.invokeNext();
                        System.out.println("After!");
                        return r;
        }

}

The jboss-aop.xml-file is place in the META-INF-directory and looks like this:

<?xml version='1.0' encoding='UTF-8' ?>




        

This code could be compiled and I put it into a jar-file called firstaspect.jar

The HelloOliver-class is the remote-interface of my Bean, HelloOliverBean 
(which contains a method work(), that says "Helloworld!"). It's jared up with 
the HelloOliverHome-interface in HelloOliver.jar, that was successfully 
deployed on JBoss4.0




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

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


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to