The short answer is yes, it should be possible to do that. Jetty supports
hot deployment, and in standard configuration monitors ./contexts directory
for new/changed deployment descriptors. For the pointers on how jetty does
this internally you may want to review
ContextDeployer<http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/deploy/ContextDeployer.html>class
(older API) or
DeploymentManager<http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/deploy/DeploymentManager.html>class
(new API).

-Michael

On Tue, Jan 25, 2011 at 1:55 PM, Philipp Walther
<[email protected]>wrote:

> Thanks Michael,
> I think need to rephrase my question: Can I set/add a context after
> starting the server?
>
> Any pointers are welcome.
> TIA
>
> On Tue, Jan 25, 2011 at 5:07 PM, Michael Gorovoy <[email protected]>
> wrote:
> > Phil, you should review Embedding Jetty tutorial, that should have
> answers
> > to most of your questions.
> >
> > -Michael
> >
> > On Tue, Jan 25, 2011 at 11:01 AM, Philipp Walther <
> [email protected]>
> > wrote:
> >>
> >> Hi all
> >>
> >> I'm trying to do something rather simple using jetty 7 in my rather
> >> trivial application:
> >>
> >> How do I add new contexts (long time ago since I last did this, so I'm
> >> not sure this is the correct term) after I started the jetty server?
> >> All I want to do is that I can start jetty and after starting it,
> >> adding "paths" that gets handled by servlets.
> >>
> >> I do not want to use any WAR files and the like, only
> >> Handlers/Servlets/HttpServlet/etc classes within my JVM..
> >>
> >> I see there is a ContextFactory, ContextHandler etc. but I don't know
> >> how these work together - I suspect it's got something to do with the
> >> LifeCycle, but I don't know (yet) how to use that..
> >>
> >> Anybody care to help?
> >>
> >> Thanks a lot in advance
> >>
> >>
> >> Phil
> >> _______________________________________________
> >> jetty-users mailing list
> >> [email protected]
> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> >
> > _______________________________________________
> > jetty-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
> >
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to