|
Michael Bouschen made changes - 19/Jul/06 07:32 PM
The filter looks good. It is vaguely familiar. I recall seeing similar code in a JavaOne presentation a few years back. ;-)
If the init getPersistenceManagerFactory call fails, have you looked at how the error is reported? You have special code to log some configuration errors, but nothing explicit for the getPersistenceManagerFactory call, which in my experience is the most likely API to fail. It might be good to wrap the call with try/catch and log the exception at level SEVERE. If you've already tested that a failure in init does the appropriate logging, you can ignore this. There are several >80 character lines.
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).
Michael Bouschen made changes - 23/Jul/06 08:56 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
JDO-398.patch for review. It adds a new class JDOFilter to the util20 subproject.