• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Transaction Rolledback exception is not throwing correctly in JBOSS EAP 5.1.2

 
Greenhorn
Posts: 5
Oracle Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have configured ejb 2 stateless bean transaction time out for 300 seconds in jboss.xml .

<session>
<ejb-name>
com.common.ejb.SOME_EJB
</ejb-name>

<jndi-name>
com.common.ejb.SOME_EJB
</jndi-name>
<call-by-value>false</call-by-value>
<exception-on-rollback>true</exception-on-rollback>
<method-attributes>
<method><method-name>getOrderOverviewInfo</method-name>
<transaction-timeout>300</transaction-timeout>
</method>
</method-attributes>
</session>

After 300 seconds it is showing some warning
[Jul 24 15:28:58] WARN - [com.arjuna.ats.arjuna.coordinator.TransactionReaper_18] - TransactionReaper::check timeout for TX -53ef92e9:d0eb:500e6f36:89 in state RUN
[Jul 24 15:28:58] WARN - [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id -53ef92e9:d0eb:500e6f36:89 invoked while multiple threads active within it.
[Jul 24 15:28:58] WARN - [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action -53ef92e9:d0eb:500e6f36:89 aborting with 1 threads active!
[Jul 24 15:28:58] WARN - [com.arjuna.ats.arjuna.coordinator.TransactionReaper_7] - TransactionReaper::doCancellations worker Thread[Thread-9,5,jboss] successfully canceled TX -53ef92e9:d0eb:500e6f36:89


But it is throwing exception after one hour. It must throw after 300 seconds

can anyone guide me where to configure transaction time out properly?

Thanks in Advance
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read this http://management-platform.blogspot.in/2008/11/transaction-timeouts-and-ejb3jpa.html.

By the way, please do not post in bold or colourful fonts. It's just distracting.
 
sathyesh selvarajah
Greenhorn
Posts: 5
Oracle Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply and Sorry for the Font.I will try the solution provided in the link and let you know the result.
 
sathyesh selvarajah
Greenhorn
Posts: 5
Oracle Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jaikiran,

I have tried increasing the global transaction timeout (in transaction-jboss-beans.xml) than ejb transaction time out (in jboss.xml).

But still rolled back exception throwing after one hour.

And Interceptor concept i can use in ejb 3 only but in my application i am using ejb 2 container managed stateless session bean.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The gist of the article I pointed you to was that there won't be a exception thrown when the transaction timeout occurs. The exception will only be thrown if there's a transaction activity after that timeout.
 
sathyesh selvarajah
Greenhorn
Posts: 5
Oracle Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any way to throw exception when ejb transaction is timed out in jboss ?
 
Right! We're on it! Let's get to work tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic