Skip to content

Development

B Shouse edited this page Jan 25, 2015 · 6 revisions

Combined DB & Web Server

org.bshouse.wsdb.server.Servers contains the setup for Jetty and HSQLDB.

Jetty Web Server

Most of the Jetty Web Server settings are currently hard coded into the Combined Server. However, the listening IP address and port are contained in org.bshouse.wsdb.common.Constants.

HyperSQL (HSQLDB)

Most of the HSQLDB settings are hard coded into the Combined Server. However, the port number, test database name, production database name and environment variable name used for switching between test and production databases are in org.bshouse.wsdb.common.Contants. Connections to the database are controlled via a whitelist in properties/server.acl.

#Stripes Framework The basic Stripes Framework setup is contained in the web.xml file. URL binding can be found in the action classes org.bshouse.wsdb.stripes.action. The org.bshouse.wsdb.common.stripes.action.RootAction acts as the default servlet and serves static content and the 'welcome' page (index.jsp).

#Hibernate ORM The basic database, connection pooling and class mappings can be found in properties/hibernate.cfg.xml. (Warning: the DB URL and Schema are changed by org.bshouse.wsdb.common.HibernateUtil in order to support test/production DB switching with a single hibernate.cfg.xml file).

Clone this wiki locally