Uploaded image for project: '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.

        Attachments

        1. JDO-398.patch
          14 kB
          Michael Bouschen

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: