This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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: 32298
    
213

Does Timeout do what you want?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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: 10433
    
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]
 
Consider Paul's rocket mass heater.
 
subject: EJB 3.0 Transaction Timeout annotation
 
It's not a secret anymore!