java - mybatis stored proc not getting committed -


i calling mysql stored proc through mybatis. proc not getting committed in sql server , locking tables. have written in code autocommit jdbc call. me solve this.

this below xml code call proc: <select id="getcontactupdated" statementtype="callable" resulttype=" xxx ">     { call [cia-reporting].dbo.reports_returnroireports(                                 #{custom1},                 #{custom2},                 #{custom3} )}`enter code here`  java code:     sqlsession sqlsession = sqlsessionfactory.opensession();     {         try {             mapper = sqlsession.getmapper(xxx.class);             sqlsession.getconnection().setautocommit(true);          } catch (exception ex) {             system.out.println(ex);         }     } 

please let me know if require more info on this. thanks, shilpa.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -