Re: How to propoerly close context db connection

2008-04-18 Thread Colin Bankier
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-

Re: How to propoerly close context db connection

2008-04-01 Thread Andrus Adamchik
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

Re: How to propoerly close context db connection

2008-03-31 Thread Marcin Skladaniec
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

Re: How to propoerly close context db connection

2008-03-31 Thread Colin Bankier
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.

Re: How to propoerly close context db connection

2008-03-31 Thread Laurent Marchal
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

Re: How to propoerly close context db connection

2008-03-31 Thread Andrus Adamchik
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 -

How to propoerly close context db connection

2008-03-30 Thread Colin Bankier
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