You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Brock Samson <br...@hotmail.com> on 2018/09/28 07:30:32 UTC
Karaf 4 org.ops4j.pax.web.session.timeout prop doesn't work
i have an application deployed in Karaf 4.1. i have
org.ops4j.pax.web.session.timeout property set in /etc/org.ops4j.pax.web.cfg
to value of 30. however, when i create a new session in my application via
HttpServletRequest.getSession(true), the timeout value of 30 mins is never
propagated, as the HttpSession.getMaxInactiveInterval() still shows -1. what
i am doing wrong? should i even expect any value from
/etc/org.ops4j.pax.web.cfg being propagates automatically? and if not, then
how do i reference it manually? thanks!
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Karaf 4 org.ops4j.pax.web.session.timeout prop doesn't work
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
In etc/org.ops4j.pax.web.cfg, don't you have a delegation to etc/jetty.xml ?
Regards
JB
On 28/09/2018 09:30, Brock Samson wrote:
> i have an application deployed in Karaf 4.1. i have
> org.ops4j.pax.web.session.timeout property set in /etc/org.ops4j.pax.web.cfg
> to value of 30. however, when i create a new session in my application via
> HttpServletRequest.getSession(true), the timeout value of 30 mins is never
> propagated, as the HttpSession.getMaxInactiveInterval() still shows -1. what
> i am doing wrong? should i even expect any value from
> /etc/org.ops4j.pax.web.cfg being propagates automatically? and if not, then
> how do i reference it manually? thanks!
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com