Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the cause of getting Transaction Timeout?  RSS feed

 
Mohammad Norouzi
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am using a bean managed stateless SB in which another business method is called within a method as follow:

tx.begin();
journalService.doSomething();
tx.commit();

This code is executing within a for-loop and sometimes the folliwing exception is occurs. Anyone knows what is the problem?

thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37241
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message says you have a timeout. Is the code taking a long time? Is it hanging?
 
Mohammad Norouzi
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:The message says you have a timeout. Is the code taking a long time? Is it hanging?


Yes some of methods have a huge operations and may have a lot of CRUD.
I've set the transaction time out to a higher value but still getting this error.
How we can avoid this problem?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!