Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I update servlet without restarting server?

Status
Not open for further replies.

Juni

Programmer
Mar 21, 2002
10
CA
Hi. Everyone.

I found some similar question but I couldn't find any answer that I wanted.

If there is same question, I'm sorry.

But let me ask you my question.

I'm using Tomcat4 on Windows. If I want to change servlet files (.class files), I always have to restart tomcat.

Is there anyway without restarting server?

If anybody knows the answer, could you help me?

I will appreciate for that.

Thanks.
 
In *theory* Tomcat will reload a .war on the fly. So if you have your war file created, and copied it over the old one already deployed in webapps, then Tomcat *should* reload the war file.

In practice I have found that this is not always 100%, and usually screws up something along the way.

--------------------------------------------------
Free Database Connection Pooling Software
 
Thank you for your answer.

As you answered me that it is not always 100%. I have tried several times in that way, but it didn't work.

If I upload the war file at the first time, tomcat creates folder same name as the war file. But if I replace later, nothing happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top