On 11 September 2013 03:04, Mark <[email protected]> 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: [email protected]
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

Open Source Integration

Reply via email to