Return to Snippet

Revision: 62355
at February 18, 2013 17:56 by alces


Updated Code
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" >
<web-app>
	<servlet>
		<servlet-name>hsql</servlet-name>
		<servlet-class>org.hsqldb.server.Servlet</servlet-class> 
                <!-- Example of absolute DB path, for path relative ./WEB_INF add parameter hsqldb.server.use_web-inf_path = true -->
		<init-param>
			<param-name>hsqldb.server.database</param-name> 
			<param-value>/var/db/hsql01</param-value> 
		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>hsql</servlet-name>
		<url-pattern>*</url-pattern>
	</servlet-mapping>
</web-app>

Revision: 62354
at February 18, 2013 17:55 by alces


Updated Code
<!DOCTYPE web-app
 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" >
<web-app>
	<servlet>
		<servlet-name>hsql</servlet-name>
		<servlet-class>org.hsqldb.server.Servlet</servlet-class> 
                <!-- Example of absolute DB path, for path relative ./WEB_INF add parameter hsqldb.server.use_web-inf_path = true -->
		<init-param>
			<param-name>hsqldb.server.database</param-name> 
			<param-value>/var/db/hsql01</param-value> 
		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>hsql</servlet-name>
		<url-pattern>*</url-pattern>
	</servlet-mapping>
</web-app>

Revision: 62353
at February 18, 2013 17:51 by alces


Initial Code
<!DOCTYPE web-app
 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" >
<web-app>
	<servlet>
		<servlet-name>hsql</servlet-name>
		<servlet-class>org.hsqldb.server.Servlet</servlet-class> 
                <!-- Example of absolute DB path, for path relative ./WEB_INF add parameter
                     hsqldb.server.use_web-inf_path = true -->
		<init-param>
			<param-name>hsqldb.server.database</param-name> 
			<param-value>/var/db/hsql01</param-value> 
		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>hsql</servlet-name>
		<url-pattern>*</url-pattern>
	</servlet-mapping>
</web-app>

Initial URL
hsqldb_servlet_web_xml

Initial Description
place hsqldb.jar in &lt;servletDir&gt;/WEB-INF/lib,
make file &lt;servletDir&gt;/WEB-INF/web.xml with following content
& your DB will reachable via URL:
http://&lt;tomcatHost&gt;:&lt;tomcatPort&gt;/&lt;servletDir&gt;

Initial Title
web.xml for run HSQLDB in Servlet mode

Initial Tags

                                

Initial Language
XML