You need to give an entry in the JBOSS_HOME/server/conf/login-module.xml file. It would be something like this.
You have to use application policy name in the jboss.xml file. Then it would be something like this.
<?xml version="1.0" encoding="UTF-8"?>
Noramally java:/DefaultDS datasource is bound to hypersonic in JBoss. so no need to deploy any file for that. But still you need to use a client login module to populate the user principal and credential to the JBoss. for more details on using DatabaseServerLoginModule JBoss and JAAS
If you need more help, feel free to ask.
[ May 16, 2005: Message edited by: Sanju Thomas ]