This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3.0 Transaction Timeout annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB 3.0 Transaction Timeout annotation" Watch "EJB 3.0 Transaction Timeout annotation" New topic
Author

EJB 3.0 Transaction Timeout annotation

Yogi Mehta
Greenhorn

Joined: Jun 24, 2009
Posts: 5
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

Joined: May 26, 2003
Posts: 32633
    
215

Does Timeout do what you want?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Yogi Mehta
Greenhorn

Joined: Jun 24, 2009
Posts: 5
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

Joined: Jul 20, 2005
Posts: 10441
    
176

You will find application server specific annotation for transaction timeouts on bean methods. Like for JBoss, you can use @org.jboss.annotation.ejb.TransactionTimeout


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3.0 Transaction Timeout annotation
 
jQuery in Action, 3rd edition