And just change the connection string. IIRC, Shards can do this thing, am I right, Dario? But it is not yet released so may not be suitable.
Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Mon, Apr 6, 2009 at 4:25 PM, Sidar Ok <[email protected]> wrote: > You don't need to create different configuration, you can use one, cache it > and use that one to configure all session factories. > > On Mon, Apr 6, 2009 at 3:19 PM, dagda1 <[email protected]> wrote: > >> >> >> >> Why ? >> >> Because I do not want to have to create a session factory >> configuration for 40 different databases all of the same schema. >> >> A bit of a waste, no? >> >> On 6 Apr, 12:26, Sidar Ok <[email protected]> wrote: >> > >>I am trying to avoid having a seperate sessionfactory for each >> > >> > client. >> > >> > Why ? >> > >> > >> > >> > >> > >> > On Mon, Apr 6, 2009 at 12:28 PM, dagda1 <[email protected]> wrote: >> > >> > > Hi, >> > >> > > I will be running in the context of a session factory. >> > >> > > I have a number of clients connecting to the same windows service via >> > > MSMQ. >> > >> > > The service will update a particular database. Each client has its >> > > own specific database with exactly the same schema, >> > >> > > I want to use the Nhibernate Castle.Facility.NhiberntateIntegration >> > > facility. >> > >> > > I am trying to avoid having a seperate sessionfactory for each >> > > client. We could have potentially 40 clients. >> > >> > > I am wodering if there is a way to change the SessionFactory >> > > connection string at run time? >> > >> > > I need to change the connection string after the session factory has >> > > been initialised or every time the windows service receives a request >> > > from MSMQ. >> > >> > > Do you think this is possible? \ >> > >> > > if not, is there another approach I can take? >> > >> > > Thanks >> > >> > > Paul >> > >> > -- >> > Sidar Ok >> > >> > http://www.sidarok.comhttp://www.twitter.com/sidarok- Hide quoted text >> - >> > >> > - Show quoted text - >> >> > > > -- > Sidar Ok > > http://www.sidarok.com > http://www.twitter.com/sidarok > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
