I need to properly close an embedded database. There's
RegistryShutdownListener but it only receives registryDidShutdown()
event. I'm using Hibernate and I'd prefer using the database
configuration given to Hibernate rather than establishing a separate
connection just to shut it down, but the proxies won't work anymore
since registryDidShutdown happens after the fact (as the name
implies). Looking at the source of RegistryImpl, it seems like it
would be almost trivial to add another notification to the interface,
something like registryIsGoingToShutdown to notify services before the
registry shuts down. Would others think this is useful and/or is there
a better way to achieve the same?

Kalle

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to