JVx connector for vert.x
Java HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
build/buildnumber
libs
src
test/com/sibvisions/vertx
.checkstyle
.classpath
.gitignore
.project
HttpServer.launch
LICENSE
NOTICE.txt
NetSocketServer.launch
README.md
Vert.x.launch
build.xml
checkstyle_header.txt
checkstyle_opensource.xml
checkstyle_suppressions.xml

README.md

Overview

A connector for JVx, implemented with vert.x

Usage

NetSocket

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();

Http

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();

Verticle

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