So, assuming, that there was only one open session in such a scenario,
to be able to refactor my current solution, I thought about

1) create a ifilter, inject the sessionmanager an execute opensession
beforeaction an closesession afteraction. this more or less simulates
my ihttpmodule.
@ german, cool, so this seemingly already exists, but whats atm?
automatic transaction management?

2) i create a service that exposes the current open session - probably
the most difficult part....

3) inject this service into my daos (which are also services), so they
can get access to the open session without code changes.

4) method by method convert to the above mentioned pattern

like that?

2009/3/5 Jan Limpens <[email protected]>:
> 2009/3/5 Tuna Toksoz <[email protected]>:
>> Do they use the same NH factory?
>
> Yes
>
> --
> Jan
>



-- 
Jan

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

Reply via email to