| Thu 13 Jul '06 |  | 
I don’t know how much time I could have saved, if someone told me I should not use the hypersonic database for a production JBoss system.
jboss.org/wiki:
hsqldb is not a production quality database.
I haven’t found a good tutorial, even the JBoss Developer’s Notebook wasn’t exhaustive, so here are my notes:
How to remove the hypersonice db from JBoss
- Remove datasource:
 delete deploy/hsqldb-ds.xml
- Add new datasource:
 for MySql add a file named deploy/mysql-ds.xml or whatever you like with something like:You should use MySqlDS as the jndi-name or you have to edit mysql-jdbc2-service.xml later 
- Use new datasource:
 find all references to DefaultDS and replace them with MySqlDS and all references to Hypersonic SQL with mySQL
- Configure jms:
 delete deploy/jms/hsqldb-jdbc2-service.xml and replace it with doc/examples/jms/mysql-jdbc2-service.xml and don’t forget to edit mysql-jdbc2-service.xmlEdit the persistence configuration and change the line :- SELECT_MAX_TX = SELECT MAX(TXID) FROM (SELECT MAX(TXID) AS TXID FROM JMS_TRANSACTIONS UNION SELECT MAX(TXID) AS TXID FROM JMS_MESSAGES) to: - SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES 
 
	 
	