Apache JDO Project - [jira] Resolved: (JDO-398) Add servlet Filter utility class

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > July 2006 > [jira] Resolved: (JDO-398) Add servlet Filter utility class





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Resolved: (JDO-398) Add servlet Filter utility class
Michael Bouschen (JIRA)

2006-07-23, 7:11 pm

[ http://issues.apache.org/jira/browse/JDO-398?page=all ]

Michael Bouschen resolved JDO-398.
----------------------------------

Resolution: Fixed

Any failure in initialization of the PMF results in a ServletException or in a JDOException which is a RuntimeException. Both get logged by the web container, if logging is configured to print error logs.

I updated the implementation and checked it in (see revision 424813).

> Add servlet Filter utility class managing a PersistenceManager per request
> --------------------------------------------------------------------------
>
> Key: JDO-398
> URL: http://issues.apache.org/jira/browse/JDO-398
> Project: JDO
> Issue Type: Task
> Components: util20
> Affects Versions: JDO 2 final
> Reporter: Michael Bouschen
> Assigned To: Michael Bouschen
> Priority: Minor
> Fix For: JDO 2 maintenance release 1
>
> Attachments: JDO-398.patch
>
>
> 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 Pers

istenceManager, 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com