JBoss Community

Re: Plugin required for ejb3 interceptors?

created by Kai Weingärtner in EJB3 - View the full discussion

The Interceptor code is complete as posted.

 

The EJB:

 

@javax.ejb.Stateless(name = "ejb/MyService")

public class MyServiceImpl implements MyService {

   

    @Override

    @javax.ejb.TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)

    @javax.interceptor.Interceptors({CallMonitoringInterceptor.class})

    public Object service(String param1) throws Exception {

// ...

    }

}

 

and

 

@javax.ejb.Local

public interface MyService {

    Object service(String param1) throws Exception;

}

Reply to this message by going to Community

Start a new discussion in EJB3 at Community