NHibnerate Int. Session Manager - Exposing Create Session

View: New views
3 Messages — Rating Filter:   Alert me  

NHibnerate Int. Session Manager - Exposing Create Session

by Thejuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Would there be a problem with exposing ISessionManager CreateSession
method so you can
add a new session to the session stack?  I'm not sure whether you can
attach multiple sessions to a single transaction, though.

I want to be able to explicitly force a new session in some instances
(and still share in the Session Manager goodness)

Can some one point me to where the Automatic Transaction stuff
integrates with sessions? If i ask for a new transaction how does it
get a new session?

Thanks
Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-project-devel@...
To unsubscribe from this group, send email to castle-project-devel+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: NHibnerate Int. Session Manager - Exposing Create Session

by Tuna Toksoz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can implement your own session provider thing, ( i don't remember the ame, perhaps SessionStore) that gives you different sessionbs.

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Fri, Oct 30, 2009 at 12:15 PM, Thejuan <aamillsbit@...> wrote:

Would there be a problem with exposing ISessionManager CreateSession
method so you can
add a new session to the session stack?  I'm not sure whether you can
attach multiple sessions to a single transaction, though.

I want to be able to explicitly force a new session in some instances
(and still share in the Session Manager goodness)

Can some one point me to where the Automatic Transaction stuff
integrates with sessions? If i ask for a new transaction how does it
get a new session?

Thanks
Adam



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-project-devel@...
To unsubscribe from this group, send email to castle-project-devel+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: NHibnerate Int. Session Manager - Exposing Create Session

by Thejuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The sessionstore just stores them, i can put my own sessions into the
store.
But i can't use the methods that create the session, wrap it in a
sessiondelgate, joins active transactions etc.


On Oct 30, 11:58 am, Tuna Toksoz <tehl...@...> wrote:

> You can implement your own session provider thing, ( i don't remember the
> ame, perhaps SessionStore) that gives you different sessionbs.
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
>
>
> On Fri, Oct 30, 2009 at 12:15 PM, Thejuan <aamills...@...> wrote:
>
> > Would there be a problem with exposing ISessionManager CreateSession
> > method so you can
> > add a new session to the session stack?  I'm not sure whether you can
> > attach multiple sessions to a single transaction, though.
>
> > I want to be able to explicitly force a new session in some instances
> > (and still share in the Session Manager goodness)
>
> > Can some one point me to where the Automatic Transaction stuff
> > integrates with sessions? If i ask for a new transaction how does it
> > get a new session?
>
> > Thanks
> > Adam

--

You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-project-devel@....
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=.