I have an application which has while(true) and will be processing continuously for 24 hrs.When ever an entry adds to the DB,it needs to update t the cache,so calls jdbctemplte.query().(JdbcDAOSupport Class)

Multiple threads will be trying to update to DB.

I'm facing - locked <0x28f8d398> (a oracle.jdbc.driver.T4CConnection) ,when we try to go live today.

Can anyone please provide your thoughts on how to resolve this or if you encountered this type of problems.