Created
August 16, 2019 12:53
-
-
Save amolpednekar/bc07cca702763f9b4c93617abb4cd73d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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