If you start a new version of jboss in the standard mode, i.e. run.sh then in the deploy directory jboss-x.x.x/server/default/deploy you will find a file called hsqldb-ds.xml. At the bottom of this file there is a mbean definintion for the database on a local port.
<mbean code="org.jboss.jdbc.HypersonicDatabase"
name="jboss:service=Hypersonic">
<attribute name="Port">1701</attribute>
<attribute name="Silent">true</attribute>
<attribute name="Database">default</attribute>
<attribute name="Trace">false</attribute>
<attribute name="No_system_exit">true</attribute>
</mbean>
Uncomment this definition and restart jboss.
This will open a port that clients can connect to.
NB* Make sure that the driver for HSQLDB is the one that is in server/default/lib typically hsqldb.jar, if you use a different version you will get connection problems.
When creating the db connection info use:
jdbc:hsqldb:hsql://IP-ADDRESS:1701
and username sa with a blank password.
Damian.