• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing a method outside the JTA

 
vijay prakash
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic