Hi, all,
my work environment, JBoss5.0.0GA+MySQL, now I use datasource encryption.
my application-policy as follow:
<application-policy name="fgdb-password-encrypted"> .... </application-policy>
<mbean code="org.jboss.resource.connectionmanager.TxConnectionManager" ...> ... <attribute name="JndiName">...</attribute> <attribute name="SecurityDomainJndiName">fgdb-password-encrypted</attribute> .... </mbean>
<!-- Instance of JBoss Security Subject Factory --> <bean name="JBossSecuritySubjectFactory" class="org.jboss.security.integration.JBossSecuritySubjectFactory"> <property name="securityManagement"><inject bean="JNDIBasedSecurityManagement" /></property> </bean>
subjectFactory = new JBossSecuritySubjectFactory(); ((JBossSecuritySubjectFactory) subjectFactory).setSecurityManagement(new JNDIBasedSecurityManagement());
I encounter the same issue, I think the subjectFactory should have a default value.
Now The code don't have default value, If we only set securityDomainJndiName, This code can't be executed, Now I don't know how topass the subjectfactory value.