jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Does Timeout do what you want?


[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: 9912
    
158

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
 
Similar Threads
Stateful bean and instance pooling
EJB 3 TransactionTimeout annotation needed
Session & MDB transaction type
Suggest Books to learn j2ee
eclipse ejb ?