Unloading servlet...

Is is possible to unload a servlet once it is invoked without shutting down the web server ?

Once I invoke a servlet once, any change made on the servlet doesn't become effective before the web server is stopped and started again. I am looking for some way to make the change effective without having to re-start the web server.
eldhoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sytanCommented:
eldho,

The answer is no. Servlets are loaded by the classloader and it is done automatically. The classloader will check for changes in the classes and reload them if changes were made. That means you shouldnt have to stop and restart the server for every change.

Unfortunately, there are some Jserv engine that will only load the servlets once. Which I presume, is the one you are using.. What you can do is to install a Jserv that does, for example Apache Jserv 1.1b1 or later..

BTW, if you are using JSWDK 1.0.1, bad news.. it will only load the servlets once..  Good Luck!

sytan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eldhoAuthor Commented:
Sytan,

Thanks. I am using JSWDK. That should explain it.

Thanks again.
Eldho.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.