[ 
http://mifosforge.jira.com/browse/MIFOS-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=64604#action_64604
 ] 

Mifos Hudson Jira Plugin User commented on MIFOS-4370:
------------------------------------------------------

Integrated in !http://ci.mifos.org/hudson/images/16x16/blue.png! 
[head-e-release #394|http://ci.mifos.org/hudson/job/head-e-release/394/]
     MIFOS-4370: add workaround for connection timeout of Batch job thread 
Hibernate session

Udai Gupta : 
[61d06ec079e3462f170e46dfe9787471177296ee|http://mifos.git.sourceforge.net/git/gitweb.cgi?p=mifos/head&a=commit&h=61d06ec079e3462f170e46dfe9787471177296ee]
Files : 
* 
application/src/main/java/org/mifos/framework/components/batchjobs/TaskHelper.java


> Batch Job thread holds connection (HibernateSession) even after completion, 
> resulting in timeout of connection
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MIFOS-4370
>                 URL: http://mifosforge.jira.com/browse/MIFOS-4370
>             Project: mifos
>          Issue Type: Bug
>          Components: Batch jobs
>            Reporter: Udai Gupta
>            Assignee: Udai Gupta
>             Fix For: Elsie F - Iteration 10, Elsie F
>
>         Attachments: dbcp.patch
>
>
> The batch jobs fails due to connection timeout as it holds the connection in 
> batch job thread,
> Solution: 
> Make sure the session is committed(closed or null) in HibernateUtil 
> (ThreadLocal) after the work
> OR
> There should be handing connection timeout in dataSourcce using autoReconnect 
> (and validation query).
> Validate query is used for validating the connection which always fail if the 
> connection has timeout.
> Read autoReconnect here 
> http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-configuration-properties.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to