Link to home
Start Free TrialLog in
Avatar of HanDuong
HanDuong

asked on

Undeploy web application

Hi all,

I am writing checking license for web application by Struts.
During deployment process in init(): i check license key.
I want to undeploy web application if license key is invalid.

Question: do you know how to undeploy web app? or can you show another idea about checking license in web app.

Thanks in advance,
Minh
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HanDuong
HanDuong

ASKER

Hi Ray,

This is good solution but i don't web application is still running while the license key is invalid. Do you have any way to undeploy web app (by command or any)?

Thanks,
Minh
HanDuong: I may not understand your question.  Are you talking about an application on your own servers, or on your client's servers? ~Ray
Hi Ray,

I mean Web application on server.

I am using Struts to develop application.
Check license key in init () function. When license key is invalid, i call exit(); but this function will stop tomcat also. So i want to know what function can do this (i think there is no).

I think your solution above is a best one.

Thank you very much.

Minh