I have code that implements a listener for PostInsert events. When I run it in a web application in Tomcat, my listener gets invoked repeatedly as a result of one session.save(). When I run the code outside of the web app, in a standalone app, the listener is invoked only once, as it should be.
I'm trying to figure out where to look for what could be causing this, that is, what some scenarios are.
In the web app, I open the Hibernate session at the beginning of the servlet browser session. Seems like this is the same as when I open the session in my standalone app.
I have lazy loading turned off.
Thanks for your help.
==Leonard
_________________ ==Leonard
|