File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet inactive interval Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet inactive interval" Watch "servlet inactive interval" New topic

servlet inactive interval

keerthi vineela

Joined: May 10, 2013
Posts: 24
If I use both declaratively i.e, specifing <session-timeout>10</session-timeout> in xml file and also programatically setMaxInactiveInterval(30).So which one it takes whether from the web.xml file or from the setMaxInactiveInterval method .

Thanks in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63544

SOunds easy enough to test for yourself. What did you discover?

[Asking smart questions] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: servlet inactive interval
It's not a secret anymore!