Please or
Try NowBuy Now
Google

Locations of visitors to this page

wrapper.ntservice.pausable.stop_jvm Property
wrapper.ntservice.pausable.stop_jvm Property

Configuration Property Overview

wrapper.ntservice.pausable.stop_jvm

Compatibility :3.2.1
Editions :Professional EditionStandard EditionCommunity Edition
Platforms :WindowsMac OSX (Not Supported)Linux (Not Supported)IBM AIX (Not Supported)FreeBSD (Not Supported)HP-UX (Not Supported)Solaris (Not Supported)IBM z/OS (Not Supported)

WARNING

DO NOT modify the value of this property while an application using the configuration file has been installed as a Winidows Service. Please uninstall the existing service BEFORE modifying this property. The service with the new value can then be safely reinstalled later.

This property is only used on Windows platforms. This property has no effect unless the wrapper.ntservice.pausable property is also set.

Setting the wrapper.ntservice.pausable property to TRUE will cause the JVM to be shutdown until the service is resumed or stopped. If, on the other hand, it is FALSE, the JVM will contine to run normally and the Wrapper will send a service control event to the Wrapper. The default is TRUE.

Example:
wrapper.ntservice.pausable.stop_jvm=TRUE

To receive and handle the service control events in a JVM that is left running, it is necessary to implement code like the following. This example creates and registers a WrapperEventListener which is flagged to only receive service events.

Example:
WrapperManager.addWrapperEventListener( new WrapperEventListener() {
    public void fired( WrapperEvent event ) {
       if ( event instanceof WrapperServiceControlEvent ) {
          WrapperServiceControlEvent scEvent = (WrapperServiceControlEvent)event;
          switch ( scEvent.getServiceControlCode() ) {
          case WrapperManager.SERVICE_CONTROL_CODE_PAUSE:
             myPauseCallback();
             break;
          case WrapperManager.SERVICE_CONTROL_CODE_CONTINUE:
             myContinueCallback();
             break;
          }
       }
    }
}, WrapperEventListener.EVENT_FLAG_SERVICE );




User Comments

If you notice something that is incorrect, missing, or simply feel that some part of this page could be explained better, feel free to log in and add a comment. You will need to register before you can log on.

Email:
Password:
Java Service Wrapper Version: 3.4.0