You can encrypt password in -ds.xml or set permission that only jboss process can read
this file.
Consider that creating DS in Java has the same security problems how -ds.xml because
anybody can decompile class files from deployed application (unless you use obfuscator or
something similar)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175756#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...