aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
I agree. Here's the link:
subject: Executing a method outside the JTA
Similar Threads
EJB3 in Action - JTA transaction within a application-managed EntityManager within a container
Doubt on the level of lock and concurency
EntityManager.joinTransaction() only for application-managed EntityManagers?
What is scope of JTA transaction
Application-Managed Transaction without joining