LibraryLink ToToggle FramesPrintFeedback

Running Multiple Containers on Same Host

You might want to run more than one instance of a Spring container on a single host. This allows you to load balance between multiple containers and also allows you to separate applications. Setting up multiple Spring containers to run on a single host requires you to modify each container's configuration so that there are no resource clashes.

If you want to run more than one Spring container on the same host, you must do the following:

  1. Make a copy of the container.wsdl file, which is located in the InstallDir/containers/spring_container/etc/wsdl directory.

  2. In your new copy, my_container.wsdl, change the port on which the Web service interface listens from 2222 to another port by changing the address property as shown below:

  3. Make a copy of the spring_container.xml file, which is located in the InstallDir/containers/spring_container/etc directory.

  4. Make the following changes to your new copy, my_spring_container.xml:

  5. Make a copy of the JMX console launch script, jmx_console_start.bat, which is located in the InstallDir/bin directory.

  6. Change the following line in the copy of the JMX console launch script to point to the JMX port that is specified above:

  7. Start the new container by passing the URL, or file location of its configuration file, my_spring_container.xml, to the start_container script as follows:

  8. To view the new container using the JMX console, run the JMX console launch script created in steps 5 and 6.

  9. Stop the new container by passing the URL or file location of its WSDL file, my_container.wsdl, to the spring_container command.

    For example, if the my_container.wsdl file has been saved to the InstallDir/containers/spring_container/wsdl directory, run the following command:

    InstallDir/bin/spring_container -wsdl ..\containers\spring_container\wsdl\my_container.wsdl stop