Hi Roland,

Ribi Roland wrote:
Is there a way in ojb to put some initial statements, which are called after
logon to the database for each DB-connection?


Have a look in ConnectionFactory implementation classes. ConnectionFactory is responsible for creation, pooling, close of connections.
All implementations are derived from ConnectionFactoryAbstractImpl. There are two protected methods:


newConnectionFromDriverManager
newConnectionFromDataSource

these methods were called to create new connections. So it should be no problem to derived a ConnectionFactory implementation and override these methods to do the initial stuff.

regards,
Armin



Roland Ribi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to