PDA

View Full Version : Multiple ConnString - CustomDBProvider


Nicoláz
01-18-2007, 12:14 PM
Hi, I am working in a application using nHibernate Integration Module and I need to use a different conn string depending on the current user.

I was thinking in creating a CustomDbProvider inheriting from Spring.Data.Common.DbProvider to manage the different connstrings
¿is this correct?
¿could it work?

¿how should I configure the application to use this CustomProvider?

Thanks in advanced.

Nicoláz

Nicoláz
01-29-2007, 12:08 PM
Finally this solution didn`t work, because the hibernate does no use the provider to create el the connections, so I resolved this by creating my own Driver for hibernate.

I anybody wants more detail about my solution, just contact me.

regards,
Nicolaz