0

How to get and set value in zk.xml parameter

asked 2013-12-12 09:24:45 +0800

takumi gravatar image takumi
12 3

Hello all,

I have minor question. Could you please tell me following questions ?

  1. how to get value of "session-timeout" specified in zk.xml.
  2. how to change the value dynamically ?

Thank you,

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-12-13 09:25:29 +0800

noahhuang gravatar image noahhuang
74 4

hi @takumi, you can try

desktop.getWebApp().getConfiguration().getSessionMaxInactiveInterval()

and

desktop.getWebApp().getConfiguration().setSessionMaxInactiveInterval()

link publish delete flag offensive edit
0

answered 2014-04-01 16:27:35 +0800

hiepgau gravatar image hiepgau
11 2

I have same issue with "org.zkoss.zk.ui.WebApp.name" in Preference. I use method webApp.getConfiguration().setPreference("org.zkoss.zk.ui.WebApp.name", value);

but when i restart server, new value is loss. i just get old value. I check file zk.xml, value of org.zkoss.zk.ui.WebApp.name is not change. please give me a advice.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-12-12 09:24:45 +0800

Seen: 25 times

Last updated: Apr 01 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More