Roberto Leong wrote:
hi can someone please save me a couple days of hacking embedded catalina and teach me what to do when deploying a new war file on runtime? my guess is that i have to create a new context but i don´t see any methods on EmbeddedManager to add a new context to an existing engine/host (there are no methods to retrieve these, only to remove/create) thanksRoberto Leong
EmbeddedManager manager = ...; // Your EmbeddedManager
object
If you want to replace an existing webapp, you have to remove the old context first, then add a new one on the same context path following the instructions above. If you are using the Embedded class directly, the procedure is virtually identical -- just call createContext() and the other creation/removal calls on the Embedded class instance instead. The "main()" method in org.apache.catalina.startup.Embedded offers an example of the kinds of things you can do here. Craig McClanahan NOTE: In the future it will be possible to run a webapp directly
out of a WAR, but that is not currently supported.
|
- embedded catalina + war files Roberto Leong
- Re: embedded catalina + war files Craig R. McClanahan
- Re: embedded catalina + war files Craig R. McClanahan
