When i invoke a POST to an XPages with a RestService Control, the renderService Method is executed twice when the RESTService is called the FIRST time (after clean of the project).
XPages:
<xe:restService id="restService2" pathInfo="community"
ignoreRequestParams="false" state="true" preventDojoStore="true">
<xe:this.service>
<xe:customRestService contentType="application/json"
serviceBean="ch.belsoft.rest.RESTServiceBean">
</xe:customRestService>
</xe:this.service>
</xe:restService>
Java Backend with the renderService Method:
@Override
public void renderService(CustomService service, RestServiceEngine engine)
throws ServiceException {
try {
System.out.println("inside RESTServiceBean.renderService:"+System.currentTimeMillis());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
When i make a Clean of the project and call the REST Service, it prints 2 times the milliseconds..
How can i prevent that? got the latest ExtLib 901v00_16.20160128-1014