Results 1 to 3 of 3

Thread: HowTo set autoReconnect = true on the Data Source configuration

  1. #1
    Join Date
    Aug 2009
    Posts
    10

    Default 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

  2. #2
    Join Date
    Jun 2005
    Posts
    102

    Default

    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

  3. #3
    Join Date
    Aug 2009
    Posts
    10

    Default

    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
  •