1 Reply Latest reply on Aug 18, 2016 3:32 AM by jimmy.pannier

    Interceptor for batchcaller

    jimmy.pannier

      Hello,

       

      There is few documentation about batch caller and I'd like to know if it's possible to have an interceptor for it.

       

      The idea is to manually begin a transaction, run batch (each proxies call are calling a remote ejb), and after commit it if there no problems during the batch

       

      Thanks in advance.

      ------------------

      Response of christian sadilek :

      Hi,

       

      I assume you mean server-side interceptors (e.g. CDI)? In that case it’s independent of Errai and yes you should be able to do that.

       

      https://docs.jboss.org/weld/reference/latest/en-US/html_single/#interceptors

       

      Please use the community forum in case of any Errai-related questions: https://developer.jboss.org/en/errai?view=discussions … likely this is going to be of interest to others as well ;).

       

      Cheers,

      Christian