You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

JEST can be used either as a HTTP Servlet in an web application or as remote client to a JSE application.
To use JEST for web application, configure the following servel in WEB-INF/web.xml

  	<servlet>
		<servlet-name>jest</servlet-name>
		<servlet-class>org.apache.openjpa.persistence.jest.JESTServlet</servlet-class>
		<init-param>
			<param-name>persistence.unit</param-name>
			<param-value>myPU</param-value>

		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>jest</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>

To verify JEST deployment with the above, point the browser to http://host:port/jest

To run JEST in a JSE environment, configure META-INF/persistence.xml with
<property name="openjpa.RemoteAccess" value="true"/>

  • No labels