Uploaded image for project: 'BatchEE'
  1. BatchEE
  2. BATCHEE-137

Make the JPAPersistenceManagerService extensible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.5-incubating
    • None
    • jbatch-core
    • None

    Description

      Hi BatchEE-Team,

      right now it's quite difficult to extend the JPAPersistenceManagerService. It would be very helpful if you could change the visibility of the member variables to protected.

      // in the original version both members are private
       protected EntityManagerProvider emProvider;
       protected TransactionProvider txProvider;

      Furthermore, please do the same for performRollback

      protected Exception performRollback(Object tx, Exception originalException) {
       try {
       txProvider.rollback(tx, originalException);
       } catch (Exception exceptionDuringRollback) {
       LOGGER.log(Level.SEVERE,
       "Got an Exception while rolling back due to another Exception. Printing Rollback Exception and re-throwing original one",
       exceptionDuringRollback);
       }
       return originalException;
       }

      Thank you in advance

      Attachments

        Activity

          People

            Unassigned Unassigned
            chberger Christian Berger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: