On Mon, 03 Oct 2005 16:37:12 +0200, Steve Ebersole <[EMAIL PROTECTED]> wrote:

Ah yes!  Forgot that it already knows about the SF to which it is bound
via its constructor.  So really the only changes needed here is to the
"static portion" of ThreadLocalSessionContext.

Well, it's a trivial implementation.  We should either include it or at
the very least post it to the Wiki.  If we add it to the distro, then at
least I'd have more then 3 things in that new package :)  I could even
refactor the Synchronization into a top-level class; then I'd have 5
things in that package :))

There you go - it wasn't that bad ;) You get a package and classes just
pops up from everywhere ;)

/max



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Bauer
Sent: Monday, October 03, 2005 9:25 AM
To: Hibernate development
Subject: Re: [Hibernate] ThreadLocalSessionContext javadoc inconsistency

Steve Ebersole wrote:
Here's another concern with the current impl for
ThreadLocalSessionContext:  the static accessors.  Basically the way
this is setup right now, users will nt be able to use this
simultaneously for multiple session-factories...

Well, I'd say that this is one of the "implement your own
SessionContext" cases. It would be the same but with a Map of
ThreadLocals and SF name on all methods, right?



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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://www.jboss.com/events/jbossworld
JBoss World Barcelona 10-12 October


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to