Skip to content

Instantly share code, notes, and snippets.

@codebude

codebude/HandleEvent.groovy Secret

Created Jan 8, 2020
Embed
What would you like to do?
@Override
public void handleEvent(final Event event) {
try {
LOG.error("Handling Event");
Exchange exchange = endpoint.createExchange();
exchange.getIn().setBody("event fired");
processor.process(exchange);
} catch (Exception e) {
LOG.error("Failed to process the exchange", e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment