-
Sep 22nd, 2009, 09:01 AM
#1
HowTo set autoReconnect = true on the Data Source configuration
Hi,
My Grails application is getting some Exception after a long time of inactivity (~ one day). I solved this issue in another environment by settings the autoReconnect to true in the Data Source configuration (either via Grails or via a JNDI DataSource config).
However it seems that this settings in Grails is not taken into consideration once deployed with cloudFoundry.
I guess CloudFoundry redefine a new DataSource to enable load balancing among the Database instances. Is there a way to set this parameter, or would you suggest another approach?
My application is mainly used during business hours, and thus this exception frequently occured on Monday morning.
Thank you
Christophe
-
Sep 22nd, 2009, 07:48 PM
#2
Christophe,
Not sure what is happening here.
We are not redefining DataSources that you specify in your DataSource.groovy file.
What is the specific exception that is being thrown?
Chris
-
Sep 23rd, 2009, 04:57 PM
#3
My mistake, I found out some occurences of the same issue in my test environment, so there is nothing to do with cloudFoundry.
Thanks for your quick reply.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules