aspose file tools*
The moose likes JBoss/WildFly and the fly likes Restart TOMCAT is required if server time is changed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Restart TOMCAT is required if server time is changed?" Watch "Restart TOMCAT is required if server time is changed?" New topic
Author

Restart TOMCAT is required if server time is changed?

randhir sethi
Ranch Hand

Joined: Jan 27, 2009
Posts: 36
I had a doubt that will a re-start of of our application which has TOMCAT as the web server and JBOSS as the Application server is required if there is a change in server time? Our Server OS is RHEL 4.0(Linux). The server time is probably behind the time by 15 mins.

I hope, my question is clear.

Please, help in solving the doubt.

regards
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Well, a couple of things:

1.) Are there any applications that your hosting that are reliant on accurate date/time.

2.) Try this is a non production environment without restarting Jboss and Tomcat, what happens? (Check the logs for timestamps to see how it reacts).


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
randhir sethi
Ranch Hand

Joined: Jan 27, 2009
Posts: 36
thanks, for your answer. My answer to your queries will be like this:-

1) There may be applications which are reliant on accurate date/time. I am not sure on this as the developers will be knowing on this, I am just an implementor.

2) Doing it in a non-production environment will not be feasible as that would not be a real test for this and there are problems in putting up our test environment.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I very strongly suggest you get a test or development environment running with this scenario, you do _not_ want to be changing system times on production without testing the consequences first!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10046
    
163

randhir sethi wrote:

2) Doing it in a non-production environment will not be feasible as that would not be a real test for this and there are problems in putting up our test environment.


Why would it be "not a real test"? Infact, you don't even need your application to be deployed on the test setup. All you need is a test application (with just a few lines of code) which gets the current system time and prints it. And you can see if the output changes on changing the system time.

I had a doubt that will a re-start of of our application which has TOMCAT as the web server and JBOSS as the Application server is required if there is a change in server time?


Do you have the option of restarting the server? If yes, then i would strongly recommend doing that in production - because any system level changes usually lead to some issue here and there (maybe not in your application but in some other application).


[My Blog] [JavaRanch Journal]
Vikky Bhat
Greenhorn

Joined: Oct 23, 2008
Posts: 20
Hi,
If we consider development environment there is no need of re-starting the server(web as well as application). changing the server time will immediately reflected. But considering a production environment and running application it is always better to restart the server as Jaikiran Pai said.otherwise it may leads to malformed response generation for the request by the server.


SCJP, SCWCD, WIPO-IP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restart TOMCAT is required if server time is changed?