File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.
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,
I agree. Here's the link:
subject: Any cache at Tomcat?
It's not a secret anymore!