Hello Andrus,
that i have in controller class (struts framework)
private DataContext createContext() {
Configuration.bootstrapSharedConfig(this.getClass());
DataDomain sharedDomain = Configuration.getSharedConfig().getDomain();
return sharedDomain.createDataContext();
}
and when i want to work with DB i make this:
if( this.ctxt == null ) this.ctxt = createContext();
but if the web-application (under tomcat) is started for a long time
ctxt is not 'null' and access to him causes an error
>>I had following problem.
>>A bit later after start of a server, i lose connection with a
>>database. (i think MySQL close unused connections)
>>In JDBC it was solved through 'pooled connection'
>>how this problem in Cayenne is solved?
A> Cayenne does provide connection pooling. From you message it is not quiet
A> clear though what really happened and whether pooling has anything to do
A> with it.
A> Any specific error messages?
-- Best regards, tim mailto:ti..e7en.ru
This archive was generated by hypermail 2.0.0 : Sat Jan 04 2003 - 17:46:01 EST