java - MyBatis mapper exception not caught when running multiple statements in one insert tag -
i using mybatis execute set of queries on database. insert tag looks below.
<insert id="dosomething"> insert statement....; insert statement... update statement.....; update statement... </insert>
this method being invoked spring task defined in spring file run in interval of 10 seconds.
weird thing happening whenever exception due data base in update statement. don't exception caught @ java code called. , task stops running point , never come back.
is because of me trying update statement in insert tag? causing task stop ever?
Comments
Post a Comment