Hi,
Then maybe you could at least talk with the Hibernate team in making the referenced
methods part of the SessionFactory API. Of course that assumes the Hibernate does support
this method being called by callers external to the configuration.
Note from Hibernate JavaDocs:
"This class must appear immutable to clients, even if it does all kinds of caching
and pooling under the covers. It is crucial that the class is not only thread safe, but
also highly concurrent. Synchronization must be used extremely sparingly."
I am also sure that it would be relatively simple to create an listener that was
contextual (hint: request, servletcontext....)
Regards,
William
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969205#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...