Package org.apache.sis.internal.metadata.sql


package org.apache.sis.internal.metadata.sql
A set of helper classes for SQL handling in the Apache SIS implementation. Do not use! This package is for internal use by SIS only. Classes in this package may change in incompatible ways in any future version without notice.

Declaring the data source in a web container

The Initializer.getDataSource() method gets the unique, SIS-wide, data source for JDBC connection to the $SIS_DATA/Databases/SpatialMetadata. The method Javadoc describes the steps for fetching that data source. When used in a JavaEE container, the data source can be configured as below:
  1. Make the JDBC driver available to the web container and its applications. On Tomcat, this is accomplished by installing the driver's JAR files into the $CATALINA_HOME/lib directory (source).

  2. If using Derby, copy derby.war into the $CATALINA_HOME/webapps directory and specify the directory where the Derby databases are located:

  3. Declare the JNDI name in application WEB-INF/web.xml file:

  4. Configure the data source in $CATALINA_HOME/conf/context.xml or in application META-INF/context.xml file (change attribute values as needed for the chosen JDBC driver):

  5. If using Derby, go to localhost:8080/derby/derbynet.

Since:
0.7
Version:
1.2