A connector for JVx, implemented with vert.x
Start server
NetSocketServer server = new NetSocketServer();
server.setPort(8888);
server.setInterface("127.0.0.1");
server.start();
Call an action
IConnection con = new NetSocketConnection("127.0.0.1", 8888);
MasterConnection appcon = new MasterConnection(con);
appcon.setApplicationName("application");
appcon.setUserName("username");
appcon.setPassword("password");
appcon.open();
appcon.callAction("startWorkFlow", new Integer(5));
appcon.close();
Start server
server = new HttpServer();
server.setPort(8080);
server.start();
Call an action
String url = "http://localhost:8080/services/";
IConnection con = new HttpConnection(url + "Server");
con.setUploadURL(url + "Upload");
con.setDownloadURL(url + "Download");
MasterConnection appcon = new MasterConnection(con);
appcon.setApplicationName("application");
appcon.setUserName("username");
appcon.setPassword("password");
appcon.open();
appcon.callAction("startWorkFlow", new Integer(5));
appcon.close();
bin/vertx run com.sibvisions.vertx.verticle.NetSocketVerticle -cp classes;libs/jvx.jar
bin/vertx run com.sibvisions.vertx.verticle.HttpVerticle -cp classes;libs/jvx.jar