Hi Jim,

> What is the correct way to start, stop and destroy applications. I am 
> doing the following at the moment

[...]
 
> Hopefully this makes sense.

Yes, your approach makes sense. The start() method on Application create the
internal filters for the enabled application services. It also gives the
developer the opportunity to override this and do additional initialization.

BTW, the stop() method wasn't doing any clean-up. I just fixed this in SVN
trunk.

In your case, you want to replace an initial application by another one
later on. I suggest that you attach to new application on the component's
virtual host, taking over requests going to the old application. 

Then, once you determine that no pending request is processed, you can
remove the old application from the virtual host and stop it.

Best regards,
Jerome  

Reply via email to