when I have to run HSQLDB for my application i have to do it from command prompt, so I always double-click the Server.bat (batch file) to start the server which contain:
java -classpath ..\war\WEB-INF\lib\hsqldb.jar org.hsqldb.Server -database test
or type the start server command from command prompt.
But, my question is that can I start the HSQL database server by coding in my java code directly, no need to start it separately from the java application? what will be the code?
Note that I am using spring 2.5, spring seecurity 2.0.4 (annotation disable).
Thank you.
解决方案