Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3.0 Transaction Timeout annotation

 
Yogi Mehta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using EJB 3.0 and using Container Managed Bean. I want to set timeout for Stateless Session bean. Please tell me the annotation or any other way to set EJB timeout.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
 
Yogi Mehta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think "Timeout" is part of EJB Timer Service and it is used for scheduling requirements. This doesn't serve my perpose.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will find application server specific annotation for transaction timeouts on bean methods. Like for JBoss, you can use @org.jboss.annotation.ejb.TransactionTimeout
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic