I am doing a project migration from Weblogic to JBOSS 4.2.2.
In weblogic, we can define a security policy to protect datasource only accessed by centain roles. Which means, if you are not in the group, even you know the database username/password, you can't access that datasource.
I looked at JBOSS datasource setup, only thing I can do now is to use application-policy to encrypt database password.
Can anyone here show me how to do it in JBOSS?
Regards,
As far as I know there is no such capability in JBossAS. Any code that knows the JNDI name for the datasource has access to the database.