Skip to content

Instantly share code, notes, and snippets.

@amolpednekar
Created August 16, 2019 12:53
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 amolpednekar/bc07cca702763f9b4c93617abb4cd73d to your computer and use it in GitHub Desktop.
Save amolpednekar/bc07cca702763f9b4c93617abb4cd73d to your computer and use it in GitHub Desktop.
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.main.Main;
public class CordaApp {
private static class MyRouteBuilder extends RouteBuilder {
public void configure() throws Exception {
from("direct:start").to("corda://localhost:10008?username=user1&password=test" +
"?operation=NODE_INFO");
}
}
public static void main(String[] args) throws Exception {
Main main = new Main();
main.addRouteBuilder(new MyRouteBuilder());
main.run(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment