Announcement Announcement Module
Collapse
No announcement yet.
Transaction in tasklet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transaction in tasklet

    Hi All,
    We have scenario like when ever a step started need to update the status in the batch architecture table called BatchTask.
    Status should be committed to the database. Basically I need to handle the commit's in the tasklet by taking the session from the SessionFactoryUtils.getSession(sessionFactory, true).

    Even exception occurs we need to catch the exception and update the exception in to the table.

    Currently we are using opensession from sessionfactory and update the batchTask table and close it.
    How to handle the transaction more effectively in the tasklet?
Working...
X