Skip to content

Instantly share code, notes, and snippets.

sharpedavid

Block or report user

Report or block sharpedavid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .bashrc
alias todo='grep -r "TODO" * --include=*.{xml,java,txt} --exclude-dir=target'
View Enrich.java
from("direct:mainroute")
.routeId("mainroute")
// pretend this is the message sent in
.transform(constant(new String("original message")))
// Prints "original message"
.log("mainroute. request = ${body}")
.enrich("direct:query_external", (Exchange oldExchange, Exchange newExchange) -> oldExchange)
// Prints "original message"
.log("mainroute. response = ${body}");
@sharpedavid
sharpedavid / MyRouteBuilder.java
Created Oct 4, 2018
A Camel Java8 DSL Router
View MyRouteBuilder.java
package com.cgi;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
/**
* A Camel Java8 DSL Router
*/
View keybase.md

Keybase proof

I hereby claim:

  • I am sharpedavid on github.
  • I am sharpe (https://keybase.io/sharpe) on keybase.
  • I have a public key ASDQVjrJD6Mm5fVIMJWh4lls-NkNpWWXiwwmI-B_Jnfqvgo

To claim this, I am signing this object:

You can’t perform that action at this time.