I have added my own DS to my jboss installation, when I tried it with ejbs it seemed to work, also it appears in the web console and is listed at startup among the deployed stuff.
Now I'm using it with JAAS and I get this error:
Login failed javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: BdaTestDS not bound at bda.beans.jaas.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:90) at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:156) (long trace follows)