This content has been marked as final.
Show 1 reply
-
1. Re: Encrypting Datasource in SAR
wolfgangknauf May 12, 2009 4:37 AM (in response to dhartford)Yes, this is possible.
Add a "...-service.xml" to your SAR with this content:<?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="org.jboss.security.auth.login.DynamicLoginConfig" name="jboss:service=DynamicLoginConfig"> <attribute name="AuthConfig">META-INF/login-config.xml</attribute> <depends optional-attribute-name="LoginConfigService"> jboss.security:service=XMLLoginConfig </depends> <depends optional-attribute-name="SecurityManagerService"> jboss.security:service=JaasSecurityManager </depends> </mbean> </server>
It adds a "DynamicLoginConfig" MBean, which points to the "login-config.xml" inside your SAR.
See http://www.jboss.org/community/wiki/DynamicLoginConfig
Best regards
Wolfgang