JDO
  1. JDO
  2. JDO-398

Add servlet Filter utility class managing a PersistenceManager per request

    Details

      Description

      I propose to add a new class JDOFilter implementing a servlet filter (interface javax.servlet.Filter) to a new package org.apache.jdo.util.web for web support utility classes. The filter init method creates a PMF instance. Method doFilter creates a PersistenceManager, stores it as a request attribute and then calls the filter chain. It closes the PersistenceManager after the chain returns. The PMF is closed in the filter method destroy.

      1. JDO-398.patch
        14 kB
        Michael Bouschen

        Activity

        Michael Bouschen created issue -
        Michael Bouschen made changes -
        Field Original Value New Value
        Attachment JDO-398.patch [ 12337194 ]
        Michael Bouschen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andy Jefferson made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Michael Bouschen
            Reporter:
            Michael Bouschen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development