Adding RPC ( Remote Process Calls ) to server

From OpenKM Documentation
Jump to: navigation, search

Servlets are used to doing GWT RPC ( Remote Process Calls ). In order to registering a new Servlet one file ( web.xml ) must be modified and OpenKM re-compiled.

Into web.xml ( src/main/webapp/WEB-INF ) must be added the servlet declaration

<servlet>
    <servlet-name>SomeServletName</servlet-name>
    <servlet-class>SomeJavaClassName</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>SomeServletName</servlet-name>
    <url-pattern>/SomeServletName</url-pattern>
</servlet-mapping>