The default configuration of the database (DefaultDS) starts an embedded hsql server automatically.
PS. You shouldn't use HSQL in a production environment. It's not stable enough DS.
Hi Anders Welen,
If I change the database location, still will I be able to use same DefaultDS?
How can I access that default DB in server mode?
Will this work : <connection-url>jdbc:hsqldb:hsql://localhost:9001/myHobbyProjectDB/</connection-url>
By the way, I use HSQL for my hobby project, and would have jboss schedule job to have a backup of DB every day, hope that should compensate the unstable nature of HSQL.
There is nothing stopping you from deploying an updated datasource (for example "externalized" hsql) with the name DefaultDS. It will be picked up and should work ok.
But there will be nothing in JBoss that can automatically start the external hsql. (You could of course add the start into the run.sh/run.bat)
Ach so, I could by all means add hsql startup script to jboss startup script.
Perhaps it would be possible to write a mbean or something that runs it on startup but it's probably not worth it.
Ya I feel quick and nice way would be to use jboss startup script for this purpose instead of going for mbean.