wood burning stoves 2.0*
The moose likes JDBC and the fly likes Executing a method outside the JTA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Executing a method outside the JTA" Watch "Executing a method outside the JTA" New topic

Executing a method outside the JTA

vijay prakash

Joined: Aug 23, 2005
Posts: 11
I have a method that runs for about 2 mins.It runs within a JTA. Since my Java tx timeout is 120 secs, it always times out.i need a way to run this module outside the transaction.The method does not access the DB at all.
Kindly suggest solutions.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

i need a way to run this module outside the transaction

Hmm. I think you need a way to check why your method takes so long to run and decide if what it is doing is valid. If it is, lengthen you transaction time out. I'm presuming you are using a transaction so you can roll something back? Data integrity should always take precedence over performance.
[ October 26, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
subject: Executing a method outside the JTA
Similar Threads
Application-Managed Transaction without joining
EntityManager.joinTransaction() only for application-managed EntityManagers?
EJB3 in Action - JTA transaction within a application-managed EntityManager within a container
What is scope of JTA transaction
Doubt on the level of lock and concurency