/* initialize ServiceFactory */
ServiceFactory.init(ServiceFactory.MODE_REMOTE);
}
public static void main(String[] args){
ConfigurationService configService =
ServiceFactory.getConfigurationService();
ApplicationConfigData configData = new ApplicationConfigData();
configData.setHost("localhost");
configData.setPort(new Integer(7001));
configData.setName("testApp");
configData.setType("weblogic");
configData.setUsername("system");
configData.setPassword("12345678");
configData = configService.addApplication(getServiceContext(),
configData);
System.out.println("ApplicationId:" + configData.getApplicationId());
System.out.println("Host:" + configData.getHost());
System.out.println("Port:" + configData.getPort());
System.out.println("Name:" + configData.getName());