Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any cache at Tomcat?

 
Kiran Kumar
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kiran Kumar
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured out! I had to restart Tomcat for changes to my Server to get reflected.
Thanks anyway,
Kiran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic