[jboss-user] [JBoss Web Services] - Session timeout Issue Webservice

Thi Quynh BUI do-not-reply at jboss.com
Thu Jan 12 05:28:43 EST 2012

Thi Quynh BUI [https://community.jboss.org/people/quynhbt] created the discussion

"Session timeout Issue Webservice"

To view the discussion, visit: https://community.jboss.org/message/646360#646360

I uses seam 2.2.2 and jboss 4.2.2
I have an very simple application, it is a webservice which has :
 - stateless 

@Stateless at Name("helloService")@WebService(serviceName = "helloService") public class helloService        implements helloServiceRemote {                      @WebMethod        public String GetHello()        {             helloInterface Hello = (helloInterface)Component.getInstance("hello");            return Hello.sayHello();                    }

- a conversation seam component

@Name(value = "hello")@Scope(ScopeType.SESSION)public class helloBean implements helloInterface{        public String sayHello()    {          return "Hello the world";    }      @Destroy  public void destroy()  {      System.out.println("Destroy of HelloBean");  }

My issue is the session timeout (defined in web.xml) does not work.
The destroy() method is never called. The helloBean component is detroyed after 1 hour.
Can you tell me what am i wrong ? and why the session timeout and @Destroy does not work.
Best regards

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120112/f453b002/attachment-0001.html 

More information about the jboss-user mailing list