JaxbCommandsResponse jaxbResponse = null;
try {
msgCorrId = message.getJMSCorrelationID();
} catch (JMSException jmse) {
String errMsg = "Unable to retrieve JMS correlation id from message! " + ID_NECESSARY;
throw new KieRemoteServicesRuntimeException(errMsg, jmse);
}
// 0. get serialization info
int serializationType = -1;
try {
if (!message.propertyExists(SERIALIZATION_TYPE_PROPERTY_NAME)) {
// default is JAXB
serializationType = JMS_SERIALIZATION_TYPE;
} else {
serializationType = message.getIntProperty(SERIALIZATION_TYPE_PROPERTY_NAME);
}
} catch (JMSException jmse) {
String errMsg = "Unable to get properties from message " + msgCorrId + ".";
throw new KieRemoteServicesRuntimeException(errMsg, jmse);
}
SerializationProvider serializationProvider;
switch (serializationType) {
case JMS_SERIALIZATION_TYPE: