3 Replies Latest reply on Dec 3, 2013 2:25 AM by Wolf-Dieter Fink


    Frank Cornelis Apprentice

      Just notices something when using @Asynchronous methods.

      If you create some JPA entities and then call an @Asynchronous method, these new entities are not visible yet within this method. Even entityManager.flush() is not 100% bullet proof as work around. So I'm forced to fallback to a transacted JMS queue (again).

      If would be nice if you could do something like:

      public void thisAsynchronousMethodWillOnlyBeInvokedWhenTheCallerTransactionCommits() {

      Could be a feature for EJB 3.next ?