GeeCON Prague 2014*
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


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Executing a method outside the JTA" Watch "Executing a method outside the JTA" New topic
Author

Executing a method outside the JTA

vijay prakash
Greenhorn

Joined: Aug 23, 2005
Posts: 11
Hi,
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.

thanks,
Vijay
Paul Sturrock
Bartender

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
 
GeeCON Prague 2014
 
subject: Executing a method outside the JTA