 | # vi /opt/jboss/jboss-4.2.1.GA/server/default/deploy/hsqldb-ds.xml
<!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase mbean. --> <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>
<!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url> -->
<!-- When using in-process (standalone) mode <depends>jboss:service=Hypersonic,database=localDB</depends>; --> <!-- Uncomment when using hsqldb in server mode --> <depends>jboss:service=Hypersonic</depends>
<!-- Uncomment if you want hsqldb accessed over tcp (server mode) --> <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic"> <attribute name="Port">1701</attribute> <attribute name="BindAddress">${jboss.bind.address}</attribute> <attribute name="Silent">true</attribute> <attribute name="Database">default</attribute> <attribute name="Trace">false</attribute> <attribute name="No_system_exit">true</attribute> </mbean> <!-- For hsqldb accessed from jboss only, in-process (standalone) mode <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=localDB"> <attribute name="Database">localDB</attribute> <attribute name="InProcessMode">true</attribute> </mbean> --> |  |