Adding RPC ( Remote Process Calls ) to server
From OpenKM Documentation
Servlets are used to doing GWT RPC ( Remote Process Calls ). In order to registering a new Servlet two files ( web.xml and Main.gwt.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>
Into Main.gwt.xml ( src/main/resources/com/openkm/frontend ) must be added some servlet declaration
<servlet path="/OpenKM/SomeServletName" class="SomeJavaClassName"/>