Is it enough the define the sessionTimeout in web.xml
Based on your first post, i assumed that you were looking for the web application's session timeout.
No, unfortunately not. I have to set up this:
Now, it works.
that I can set the timeout at the method-level via annotation in my stateless sessionBean:
@TransactionTimeout(10000) void doThat()
Your second post is talking about a transaction timeout and is not related to the session timeout of a web application. Which one exactly are you interested in? Please provide more details about what you are looking for.
Joined: Jun 28, 2008
I use JBOSS 4.2 and want use the annotation, but this does not work oi
However, this does not work, when I set up the timeout in server-xml, then it does work. But I want to use the annotation (and no ctx-lookup setTransactionTimeout). [ December 12, 2008: Message edited by: nimo frey ]