Restarting your Java application

If your application completes, either by returning from the main method or by a call to the System.exit(0) method, then the Java™ middleware status is stopped, but the virtual machine is still running. To restart the application, you must first stop the virtual machine.

Procedure

  1. Click Patterns > Virtual Application Instances.
  2. Select your virtual application instance to show the application details.
    If the application completed successfully, the application status is stopped. The Java middleware status in the Virtual machine perspective section is also stopped, but the virtual machine status is running.
  3. In the toolbar, click Maintain to put the application into maintenance mode.
  4. In the Actions section, click the View link, then click Stop.
    Wait for the virtual machine to reach the stopped state.
  5. Click the View link again, then click Restart.
    The virtual machine and the application are both restarted.
    Note: The virtual machine is reused from the previous session. If the application is a web application, the IP address is unchanged. Any files that the application created or modified still exist; if you want any cleanup to be done automatically when the application finishes or restarts, that cleanup must be done by the application.
  6. Click Resume to exit maintenance mode.