Demo Application with JEST Servlet
index.html
An example of deploying a simple web application with JEST servlet. This descriptor specifies the Demo Application servlet as well as JEST servlet.
This is the Demo Application Servlet. The servlet is mapped to URL pattern /app/* so this servlet can be accessed as http://host:port/demo/app/ where "demo" is the name of the deployed web application.

Assume that the Demo Application Servlet is using a persistence unit named 'jestdemo'. The JEST Servlet will require the persistence unit name to browse the Demo Application.
demo
demo.SimpleApp
demo
/*
This is the JEST servlet. JEST Servlet needs to know the name of the persistence unit used by the Demo Application. The unit name is specified by mandatory "persistence.unit" parameter during initialization.

The JEST servlet is mapped to URL pattern /jest/* in servlet mapping section. So to access JEST servlet, use the following URI http://host:port/demo/jest/ Notice the trailing forward slash character is significant.
jest
org.apache.openjpa.persistence.jest.JESTServlet
persistence.unit
jestdemo
debug
true
jest
/jest/*