Versions Compared

Key

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

...

Code Block
languagejava
Deployable war = new WAR("path/to/simple.war");

// START SNIPPET: configuration-typed-resin3x
LocalConfiguration configuration =
    new Resin3xStandaloneLocalConfiguration("target/myresin3x");
// END SNIPPET: configuration-typed-resin3x
configuration.addDeployable(war);

InstalledLocalContainer container =
    new Resin3xInstalledLocalContainer(configuration);
container.setHome("c:/apps/resin-3.0.18");

container.start();
// Here you are assured the container is started.

container.stop();
// Here you are assured the container is stopped.

...