public void createApplicationInstance() throws Exception{
ApplicationInstanceService appService = Platform.getService(ApplicationInstanceService.class);
String applicationInstanceName = "TestDisconnectedApp";
ApplicationInstance newAppInstance = new ApplicationInstance();
//Set Application Instance Name
newAppInstance.setApplicationInstanceName(applicationInstanceName);
//Set Application Instance type(Set it as per requirement)
newAppInstance.setType(ApplicationInstance.TYPE.Disconnected);
//Set Application Instance Display Name
newAppInstance.setDisplayName(applicationInstanceName);
appService.addApplicationInstance(newAppInstance);
System.out.println("Application Created Successfully :: " + applicationInstanceName);
}
Happy Learning!!!
String applicationInstanceName = "TestDisconnectedApp";
ApplicationInstance newAppInstance = new ApplicationInstance();
//Set Application Instance Name
newAppInstance.setApplicationInstanceName(applicationInstanceName);
//Set Application Instance type(Set it as per requirement)
newAppInstance.setType(ApplicationInstance.TYPE.Disconnected);
//Set Application Instance Display Name
newAppInstance.setDisplayName(applicationInstanceName);
appService.addApplicationInstance(newAppInstance);
System.out.println("Application Created Successfully :: " + applicationInstanceName);
}
Happy Learning!!!
No comments:
Post a Comment