0 Replies Latest reply on Feb 7, 2006 7:49 AM by baumgarten

    stateful session bean and beforeCompletion

    baumgarten

      Hello!

      I try to make sending an email transactional. In a stateless session bean I create a Mail-Entity instance (a data entry that persists the mail). In the server log an insert statment is logged. When I init a stateful session bean with the mail data. The stateful session implements SessionSynchronization and I send in the "beforeCompletion" method the mail. In the same method I update the Mail-Entity with the sending date. The problem is that this update does not happen (no update statment in server log). This runs all in the same transaction.

      Is this a configuration problem? I use JBoss 4.02 on Java 5.0.

      Apropos creating new Entity Bean instances works in beforeCompletion!


      regards
      Sven