On Fri, 25 Feb 2005 17:25:26 -0500, Bill Burke <[EMAIL PROTECTED]> wrote:
Will hibernate work with multi-threaded access to a Session? Also, if that Session is in a tx? We've implemented asynchronous EJBs and I want to know if it is feasible to propagate the TX to each one of the threads in the parallel call.
A Session is not thread bound, but it is also not thread safe.
From Session\s javadoc:
"It is not intended that implementors be threadsafe. Instead each thread/transaction
should obtain its own instance from a <tt>SessionFactory</tt>."
Does that answer your question ?
max
Thanks,
Bill
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-- Max Rydahl Andersen callto://max.rydahl.andersen
Hibernate [EMAIL PROTECTED] http://hibernate.org
JBoss Inc [EMAIL PROTECTED] http://jboss.com
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel