Adding RPC ( Remote Process Calls ) to server

From OpenKM Documentation
Revision as of 14:56, 24 June 2010 by Jllort (talk | contribs) (Created page with '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.…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"/>