The configuration of the REST API consists in the deployment of jar libraries to the classpath and the configuration of the servlet in the /WEB-INF/web.xml . After it's configured, all persistent classes are automatically exposed via RESTful HTTP interface.


DataNucleus REST API requires the libraries: DataNucleus core, DataNucleus rest, Flexjson, and the JDO API. These libraries must be in the classpath. In war files, these libraries are deployed under the folder /WEB-INF/lib/ .


The DataNucleus REST Servlet class implementation is . It has to be configured in the /WEB-INF/web.xml file, and it takes one initialisation parameter.

Parameter Description
persistence-context A named PMF/persistence-unit configuration
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

<web-app xmlns="" version="2.5">