This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Any cache at Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Any cache at Tomcat?" Watch "Any cache at Tomcat?" New topic
Author

Any cache at Tomcat?

Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
Hi All,
I am implementing a simple Time of day service using SOAP on Tomcat 3.2.
Here is how my simple Service looks like
-------------------------------------------------
import java.util.*;
public class TimeofDayServer {

public String getTime() {
GregorianCalendar cal = new GregorianCalendar();
Date date = cal.getTime();
return date.toString();
}
-------------------------------------------------
My simple Client is obvious. But every time I run my client I do not get Current time. Rather I get old time which was the response from the server when the client was run for the first time.
Does Tomcat implement cacheing mechanism? or is the fault with my code? How can I implement Time_of_day service then?
Any pointers are appreciated.
Thanks,
Kiran Devaram
Kansas State University


------------<br />SCJP
Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
Figured out! I had to restart Tomcat for changes to my Server to get reflected.
Thanks anyway,
Kiran
 
GeeCON Prague 2014
 
subject: Any cache at Tomcat?