Madhusudan Joshi
Madhusudan Joshi

Reputation: 4476

Start Embedded jetty Server with separate JVM attached to it

Hi have started Embedded Jetty server with in my Java Code, but it attached to the same JVM. Can we start Embedded Jetty Server with a separate JVM attached to it.

Is there any way of doing it. Please let me know. Thank You

Upvotes: 1

Views: 529

Answers (1)

Bruno Grieder
Bruno Grieder

Reputation: 29814

Runtime.getRuntime().exec(command) ? Command being a script, an invocation to launch java on your Main.class, etc...

I am not sure why you want to do that but if you are attempting to control the JVM running Jetty from the 'outside' then you should look at Java Service Wrapper.

The wrapper provides a Java API that gives you the ability to control the lifecycle of your app. Version 3.2.3 is available under a different license if that matters.

Upvotes: 1

Related Questions