Skip to content

Instantly share code, notes, and snippets.

@codebude
Created January 8, 2020 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codebude/936a51eb3870d64e2785886578912301 to your computer and use it in GitHub Desktop.
Save codebude/936a51eb3870d64e2785886578912301 to your computer and use it in GitHub Desktop.
@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