camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james.strac...@gmail.com>
Subject Re: Camel-jetty and hawt.io
Date Wed, 11 Sep 2013 14:16:34 GMT
On 11 September 2013 15:11, Mark <elihusmails@gmail.com> wrote:

> There may be a larger problem WRT dependencies though.  Is there a way to
> embed hawt into an existing jetty instance programatically?
>

Sure, just add the hawtio-default.war



>
>
>
> On Wed, Sep 11, 2013 at 6:30 AM, James Strachan <james.strachan@gmail.com
> >wrote:
>
> > On 11 September 2013 03:04, Mark <elihusmails@gmail.com> wrote:
> > > I have some Camel routes that I have running in a standalone java app,
> > and
> > > I'd like to embed hawt in the JVM.  Is it possible to do since Camel
> and
> > > Hawt will want their own jetty instance running in the JVM?
> >
> > Sure. Or you could run hawtio stand alone and connect remotely to it:
> > http://hawt.io/getstarted/index.html
> >
> > Or you could use hawtio-embedded (which just starts up an embedded
> > Jetty server). If you're stand alone camel routes are doing the same
> > and starting a Jetty too then you could:
> >
> > * make sure they are listening on different ports; so you'd have 2
> > embedded Jetty Server instances.
> >
> > * if you want to reuse the same port and Jetty Server; you'll probably
> > need to do some custom Java code or Dependency Injection stuff to wire
> > the same Jetty Server into both Camel and hawtio but using different
> > web app contexts. Though its probably not worth the effort though ;)
> >
> > So just using different ports would be the simplest ;) At least you
> > should be able to share the same Jetty jars :)
> >
> > --
> > James
> > -------
> > Red Hat
> >
> > Email: jstracha@redhat.com
> > Web: http://fusesource.com
> > Twitter: jstrachan, fusenews
> > Blog: http://macstrac.blogspot.com/
> >
> > Open Source Integration
> >
>



-- 
James
-------
Red Hat

Email: jstracha@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

Open Source Integration

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message