JBoss Community

Re: EJB business methods invoked by @Timeout (same bean) not intercepted

created by jaikiran pai in JBoss AS 7 Development - View the full discussion

Guido Bonazza wrote:

 

 

Here is an example:

 

 

@Stateless

public class TimedBean {

    @Timeout

    public void timeout() {

        asyncMethod();

    }

 

    @Asynchronous

    public void asyncMethod() {

        // ...

    }

}

 

 

Using the this operator to invoke on the bean method does not provide EJB semantics. Please see this previous discussion for more details https://community.jboss.org/message/525521#525521

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community