How to start a flow over RPC

You can define your API to your Corda node however you like. In Tomcat you’ll get to define all of your routes. See this sample controller file on Github.

We tend to use Google’s GSON package for our examples for convenience, but there’s nothing that’s particularly restrictive other than the RPC calls to Corda that have to be done with a NodeRPCConnection.

You can see a gist example of that here