Commit 996708df authored by Sébastien BAHLOUL's avatar Sébastien BAHLOUL
Browse files

Fixing #265: no need to specify the next id request parameter if not used as a Asynchronous service

parent b25e19c5
......@@ -89,7 +89,6 @@ public class SimpleJdbcSrcService extends AbstractJdbcService implements IAsynch
// check that we have all parameters, or abort
Configuration.assertPropertyNotEmpty("requestNameForList", requestNameForList, this.getClass().getName());
Configuration.assertPropertyNotEmpty("requestNameForObject", requestNameForObject, this.getClass().getName());
Configuration.assertPropertyNotEmpty("requestNameForNextId", requestNameForNextId, this.getClass().getName());
try {
interval = Integer.parseInt(props.getProperty("interval"));
......@@ -166,6 +165,9 @@ public class SimpleJdbcSrcService extends AbstractJdbcService implements IAsynch
@Override
public String getRequestNameForNextId() {
if(requestNameForNextId == null) {
throw new ExceptionInInitializerError("No 'requestNameForNextId' provided: cannot get the requested next id request !");
}
return requestNameForNextId;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment