private void setRestAppAttributes(Application app, Properties appProps) throws PropertyVetoException, TransactionFailure { // context-root element if (appProps.getProperty(ServerTags.CONTEXT_ROOT) != null) { app.setContextRoot(appProps.getProperty( ServerTags.CONTEXT_ROOT)); } // property element // trim the properties that have been written as attributes // the rest properties will be written as property element for (Iterator itr = appProps.keySet().iterator(); itr.hasNext();) { String propName = (String) itr.next(); if (!propName.equals(ServerTags.LOCATION) && !propName.equals(ServerTags.CONTEXT_ROOT) && !propName.equals(ServerTags.OBJECT_TYPE) && !propName.equals(ServerTags.DIRECTORY_DEPLOYED) && !propName.startsWith( DeploymentProperties.APP_CONFIG)) { if (appProps.getProperty(propName) != null) { Property prop = app.createChild(Property.class); app.getProperty().add(prop); prop.setName(propName); prop.setValue(appProps.getProperty(propName)); } } } }
private void setRestAppAttributes(Application app, Properties appProps) throws PropertyVetoException, TransactionFailure { // context-root element if (appProps.getProperty(ServerTags.CONTEXT_ROOT) != null) { app.setContextRoot(appProps.getProperty( ServerTags.CONTEXT_ROOT)); } // property element // trim the properties that have been written as attributes // the rest properties will be written as property element for (Iterator itr = appProps.keySet().iterator(); itr.hasNext();) { String propName = (String) itr.next(); if (!propName.equals(ServerTags.LOCATION) && !propName.equals(ServerTags.CONTEXT_ROOT) && !propName.equals(ServerTags.OBJECT_TYPE) && !propName.equals(ServerTags.DIRECTORY_DEPLOYED) && !propName.startsWith( DeploymentProperties.APP_CONFIG)) { if (appProps.getProperty(propName) != null) { Property prop = app.createChild(Property.class); app.getProperty().add(prop); prop.setName(propName); prop.setValue(appProps.getProperty(propName)); } } } }
app.setObjectType("system-admin"); //TODO app.setDirectoryDeployed("true"); app.setContextRoot(contextRoot); try { app.setLocation("${com.sun.aas.installRootURI}/lib/install/applications/" + AdminConsoleAdapter.ADMIN_APP_NAME);
webModule.getDirectoryDeployed()); app.setLibraries(webModule.getLibraries()); app.setContextRoot(webModule.getContextRoot()); app.setAvailabilityEnabled( webModule.getAvailabilityEnabled());