Al Maw schrieb:

Hi Al

Subclass WebRequestCycle, and construct it with an EntityManager.

thanks! That may well be an alternative to the common ServletFilter-pattern.

One question: isn´t it a little better to have the ThreadLocal Holder for the EntityManager separate from the RequestCycle, but notified of its events? Somewhat a 'listener' that registers itself ?

This would decouple things as well as make configuration at runtime easier. (The 'Favor decoration over inheritance' thing.)

What am i missing?

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to