• Not sure what you gain from the explicit transaction.

    Can you pass the data you insert to the table to the java app as parameters? That may release you from having put any locks on the table in the Java app...