Oops, I spoke too soon. It's actually upon calling Query.list() that I get this exception. Specifically, I retrieve a named query and get the list:

Query   castQuery = session.getNamedQuery("castQuery");
castQuery.setLong(0, iFilmId.longValue());
List    cast = (List)castQuery.list();

So far, when using the ServletFilter, the last line throws an exception every time.

Thoughts?

Paul Snively wrote:
Jon,

I got your code via the newsgroup--thanks for posting that!

Unfortunately, under heavy threading load, I start to see exceptions in my logs: "Illegal attempt to associate a collection with two open sessions" is the message that I get. I should add that I have many lazy associations, and it's upon resolving them that this issue seems to arise. Any comments from anyone about using this ServletFilter in a heavily mutlithreaded context would be most welcome.

Thanks,
Paul




-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en




-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




Reply via email to