Description of problem: When you create a Datasource or ConnectionFactory with the management interface (org.jboss.deployers.spi.management.ManagementView#applyTemplate), the value of "Security Deployment Type" is ignored and set to "Domain and Application". Version-Release number of selected component (if applicable): EAP 5.2 How reproducible: Always Steps to Reproduce: Call to the management to create a Datasource or a ConnectionFactory and set the "Security Deployment Type" ManagedProperty to "NONE". Actual results: The resource is created and "Security Deployment Type" ManagedProperty is set to "Domain and Application". Expected results: The resource is created and "Security Deployment Type" ManagedProperty is set to "NONE". Additional info: Same behavior in the admin console, but as it uses EmbeddedJOPR I guess this is expected.