package lj_cust; import java.util.*; import wt.util.*; import wt.httpgw.GatewayAuthenticator; import wt.method.RemoteMethodServer; public class lifecycleState { public static void main(String[] args) { RemoteMethodServer rms = RemoteMethodServer.getDefault(); GatewayAuthenticator auth = new GatewayAuthenticator(); auth.setRemoteUser("wcadmin"); rms.setAuthenticator(auth); try { wt.lifecycle.State[] stateArray = wt.lifecycle.LifeCycleHelper.service.allStates(); for (int i = 0; i < stateArray.length; i++) { System.out.println( "wt.lifecycle.State["+i+"]: " + stateArray[i] ); } } catch (WTException wtee) { wtee.printStackTrace(); } } }