Basically, I need to flush the session if
* I am calling into code that will open another hibernate session. This will be the case if I call a remote object, but may happen with local invocation too, if for example, target EJB runs under different security role.
* I am calling into code that uses JDBC to access the same database directly. Again, this can be both local and remote invocations.


I know this is tricky ;-)

Bill Burke wrote:


Igor Fedorenko wrote:


What about session flushing? Say I am writing an EJB that writes something to the database through Hibernate and then calls another remote EJB.


What would be the semantics? You would also need the ability to associate a Session with a thread as well to get this automatic functionality.


Bill







-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to