How to fix java spring mvc web application run time in Apache Tomcat 6 server? -


i developed web application using java spring mvc. want deploy application on tomcat server , want application run in period of time in day. say, application run 10:00 6:00 pm everyday , other time of day application cannot used. have searched if can done tomcat server 6 want deploy application unable solution or clue how achieve purpose. so, question how can implement wanted do? solution, samples or ideas helpful complete task.

i think trying solve problem using infrastructure instead of using application should solved.if requirement not have application available during period of time, business requirement, code solution it. example not allow logins if login falls outside specified time period , instead display message user. existing sessions intercepted using handler , invalidating session forcing re-login.

another solution run cron job on server, stops tomcat @ specified time , starts again. not advisable users not know of operating times , assume wrong.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -