Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.