they recommend to do in such situation. There maybe a SQL
> query that would shutdown/reopen the file, or something else (like
> restarting the DataSource).
>
> Andrus
>
--
View this message in context:
http://www.nabble.com/How-to-propoerly-close-context-db-connection-
ols connections. If you need a different policy, you need to
provide
a DataSource that does whatever is appropriate in your environment.
Custom DataSource is installed by providing a special
DataSourceFactory for a give DataNode in the Modeler.
Andrus
--
View this message in context:
http
message in context:
http://www.nabble.com/How-to-propoerly-close-context-db-connection-tp16392733p16403625.html
Sent from the Cayenne - User mailing list archive at Nabble.com.
smime.p7s
Description: S/MIME cryptographic signature
View this message in context:
http://www.nabble.com/How-to-propoerly-close-context-db-connection-tp16392733p16403625.html
Sent from the Cayenne - User mailing list archive at Nabble.com.
personnaly i used informations from here
http://cwiki.apache.org/CAY/setting-database-connection.html
I inherit the cayenne PoolManager (code is attached) and when a
disconnect occurs i use a thread to poll when
the connection becomes active with
try {
_log.trace("[DatabaseCon
en it correctly reads the new data.
Any help on how to properly close the database connection would be
greatly
appreciated.
Cheers,
Colin Bankier.
--
View this message in context:
http://www.nabble.com/How-to-propoerly-close-context-db-connection-tp16392733p16392733.html
Sent from the Cayenne -
LL is the old data - until the app is
shutdown and re-started when it correctly reads the new data.
Any help on how to properly close the database connection would be greatly
appreciated.
Cheers,
Colin Bankier.
--
View this message in context:
http://www.nabble.com/How-to-propoerly-close-conte