>> > <property > name="connection.connection_string_name">TheNameOfConnectionString</property>
But this still does not allow me to change the connection string at runtime. Or am I missing something\? On 6 Apr, 14:29, Fabio Maulo <[email protected]> wrote: > aaaaaaaaahhhh well....you can use only one session factory conf and use > > <property > name="connection.connection_string_name">TheNameOfConnectionString</property> > > in the app.config > <connectionStrings> > <add name="TheNameOfConnectionString" connectionString="The connection > string of you cliente" /> > </connectionStrings> > > 2009/4/6 dagda1 <[email protected]> > > > > > > > > > >> 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 - > > -- > Fabio Maulo- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
