return status;
}
private MailResource createConfigBean(Resources param, Properties props) throws PropertyVetoException,
TransactionFailure {
MailResource newResource = param.createChild(MailResource.class);
newResource.setJndiName(jndiName);
newResource.setFrom(fromAddress);
newResource.setUser(mailUser);
newResource.setHost(mailHost);
newResource.setEnabled(enabled);
newResource.setStoreProtocol(storeProtocol);
newResource.setStoreProtocolClass(storeProtocolClass);
newResource.setTransportProtocol(transportProtocol);
newResource.setTransportProtocolClass(
transportProtocolClass);
newResource.setDebug(debug);
if (description != null) {
newResource.setDescription(description);
}
if (props != null) {
for (java.util.Map.Entry e : props.entrySet()) {
Property prop = newResource.createChild(Property.class);
prop.setName((String) e.getKey());
prop.setValue((String) e.getValue());
newResource.getProperty().add(prop);
}
}
return newResource;
}