Thanks Jan. Much appreciated!
I'll try to clarify the flow a bit more.
My main thread creates and starts the Jetty Server - as attached in Jetty_Server.txt
Once Server is started, it spawns x number of threads depending on the number of contexts I have to deploy in the server [ whats attached in Jetty_Context.txt , which basically is creating instances of org.eclipse.jetty.webapp.WebAppContext and attaching to HandlerCollection of the Server. ] What we are trying to achieve is an hot deploy of sorts in to HandlerCollection. And if I understand correctly, HandlerCollection is mutable which would allow hot deploy.
Now, as you mentioned, if it's allowed only in Single thread, then Yes, I would have a problem. Where can I find a confirmation to this without burning my fingers, you think?
Just FYI , I have tried out the single thread, multiple context approach and that works. No handlerCollection here, just keeping on adding WebAppContext to HandlerList.
I will try out your suggestion of adding HandlerCollection to HandlerList rather than the other way around.
Thanks,
Varsha