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>SomeNameServlet</servlet-name>
<servlet-class>SomeJavaClassName</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SomeNameServlet</servlet-name>
<url-pattern>/SomeNameServlet</url-pattern>
</servlet-mapping>
Into Main.gwt.xml ( src/main/resources/com/openkm/frontend ) must be added some servlet declaration
<servlet path="/OpenKM/SomeNameServlet" class="SomeJavaClassName"/>