de.mhus.lib.jms.ServerJsonService Maven / Gradle / Ivy
package de.mhus.lib.jms;
import de.mhus.lib.core.IProperties;
public class ServerJsonService extends ServerJsonObject implements JmsChannelService {
private ServiceDescriptor service;
public ServerJsonService(JmsDestination dest, ServiceDescriptor service) {
super(dest);
this.service = service;
}
@Override
public void receivedOneWay(IProperties properties, Object... obj) {
String functionName = properties.getString("function", null);
if (functionName == null) {
log().w("function not set",getDestination());
return;
}
functionName = functionName.toLowerCase();
FunctionDescriptor function = service.getFunction(functionName);
if (function == null) {
log().w("function not found",functionName,getDestination());
return;
}
if (!function.isOneWay()) {
log().w("function not one way",functionName,getDestination());
return;
}
function.doExecute(properties, obj);
}
@Override
public RequestResult
© 2015 - 2025 Weber Informatics LLC | Privacy Policy