Today I came by an interesting open source project which extends default JBoss DatabaseServerLoginModule, but with the extra added functionality salted password and iteration count. Enjoy
http://www.rtner.de/software/PBKDF2.html
http://www.rtner.de/software/PBKDF2.html