Hi!
I know the easy answer is to restart the server, but I can't do that
with my hosting company.,,
My issue is that I am updating a servlet on my web hosting company
(godaddy), and it is supposed to update in 45 seconds from when it is
uploaded. Sadly though, it is not updating.
Clearly, this makes it really hard to debug it.
Is there something that I can do to force it to update on the host? I
know that the outputted content should change (I made the changes
blatently obvious in my servlet) - only it will only update when they
reboot the server (once a day).
This is a huge inconvenience... Any ideas on what I can do?
Arne Vajhøj - 02 Jan 2008 02:48 GMT
> I know the easy answer is to restart the server, but I can't do that
> with my hosting company.,,
>
> My issue is that I am updating a servlet on my web hosting company
> (godaddy), and it is supposed to update in 45 seconds from when it is
> uploaded. Sadly though, it is not updating.
It is common for Tomcat to automatically detect changes to JSP's but not
to class files.
> Is there something that I can do to force it to update on the host? I
> know that the outputted content should change (I made the changes
> blatently obvious in my servlet) - only it will only update when they
> reboot the server (once a day).
Do you have access to restart the web app ?
Arne
Lew - 02 Jan 2008 03:00 GMT
>> I know the easy answer is to restart the server, but I can't do that
>> with my hosting company.,,
[quoted text clipped - 12 lines]
>
> Do you have access to restart the web app ?
One way, if you have access, is through the 'manager' app in Tomcat.

Signature
Lew
proudbug - 02 Jan 2008 16:34 GMT
> >> I know the easy answer is to restart the server, but I can't do that
> >> with my hosting company.,,
[quoted text clipped - 14 lines]
>
> One way, if you have access, is through the 'manager' app in Tomcat.
Another way, if you have access, is to add/update reloadable attribute
of Context to true. It should be in context.xml file under %
{catalina_home}\conf\
Happy New year, everyone! -xw
Manish Pandit - 02 Jan 2008 21:29 GMT
> Hi!
>
[quoted text clipped - 13 lines]
>
> This is a huge inconvenience... Any ideas on what I can do?
Can you provide more details on what the servlet does? I am trying to
understand the changes you might be doing in the code every 45 seconds
prompting a reload. Most applications have change in state with time,
not in the behavior. A state change can be managed outside of the
application logic (the actual code) as variables or externalized in a
database - hence reloading the servlet is something I am trying to
understand as a requirement..that too every 45 seconds.
-cheers,
Manish
tiewknvc9 - 02 Jan 2008 22:52 GMT
I dont have access to the server. The code doesn't change every 45
seconds, but the server used to update every 45 seconds - so if I
uploaded a new version of the servlet - it would update in 45 seconds
after I uploaded it.
Sadly I think Im screwed...
> > Hi!
>
[quoted text clipped - 24 lines]
> -cheers,
> Manish