3839404142434445
return siMessage; } @SuppressWarnings("unchecked") public static org.springframework.integration.message.Message storeToSpringIntegrationMessage(org.apache.camel.Message message) { GenericMessage siMessage = new GenericMessage(message.getBody()); return siMessage; }
71727374757677
Map<String, Object> headers = camelMessage.getHeaders(); for (String key : headers.keySet()) { Object value = headers.get(key); messageHeader.setAttribute(key, value); } return new GenericMessage(camelMessage.getBody(), messageHeader); }