I've written an application server of sorts. The applications which run in
the application server are able to retrieve a
org.exolab.castor.jdo.engine.DatabaseImpl object and use it to persist and
retrieve objects. Additionally I've written a 'connection registry' whereby
all connections are registered with this registry and events such as
'new_owner' and 'closed' are logged. The problem that I'm running into is
that I cannot seem to figure out how to get the actual connection used by
'Database'. I've cast the Database object, returned by the JDO DataSource,
to DataBaseImpl and used the getConnection() method, but I have to wait
until the users application call begin() a transaction before I can register
the connection. Since Database does not have any event listeners that I can
use, I'm kind of stuck.
Does anyone have any ideas on how I can access the underlying connection
before the user can use this connection.
Also, would anyone bne interested in an DatabaseImpl which allows for event
listeners to be registered for events such as beginTransaction,
commitTransaction, rollbackTransaction and db.Close? It looks like that will
be the next move if I can't get this solved some other way.
I'm using Oracle with the thin driver, poolman 2.0.4 and castor 0.9.3.19.
Thanks for any feedback.
-john:m
-----
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev