Deploying your own web application
If you deploy the server-side graph layout component
as part of your own web application, you must include the supplied graphlayout-1.1.jar file
that you find in dojo-diagrammer-server.war.
The graph layout web service code also depends on the JAR files listed
in Requirements for server-side graph layout.
The web service must be registered correctly in your
web application. You register the server-layout JAX-RS application
in your web deployment descriptor (web.xml file).
The name of the JAX-RS servlet can vary, depending on your JAX-RS
provider, but it must be configured with the GraphLayoutApplication class
located in the graphlayout-1.1.jar file.
This example registers a graph layout application with the IBM JAX-RS
servlet:
<servlet>
<servlet-name>IBM JAX-RS Servlet</servlet-name>
<servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>com.ibm.ilog.views.graphlayout.http.GraphLayoutApplication</param-value>
</init-param>
</servlet>