Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
LocalContainer container = new Jetty4xEmbeddedLocalContainer(
    new JettyStandaloneConfiguration("target/jetty4x"));

Deployable war = new DefaultDeployableFactory().createDeployable(
    container.getId(), WAR("src/data/some.war", DeployableType.WAR);
war.setContext("application-context");
container.getConfiguration().addDeployable(war);

container.start();

...