Permalink
Browse files

Added (failing) Java source mod example

  • Loading branch information...
1 parent c55f258 commit ee54dd0fc08e0ba6f6cd7ffc6eab952070bf106d @purplefox purplefox committed Jan 6, 2013
@@ -0,0 +1,3 @@
+{
+ "main": "org/foo/MyMain.java"
+}
@@ -0,0 +1,17 @@
+package org.foo;
+
+import org.vertx.java.core.Handler;
+import org.vertx.java.core.net.NetSocket;
+import org.vertx.java.core.streams.Pump;
+import org.vertx.java.deploy.Verticle;
+
+public class MyMain extends Verticle {
+
+ public void start() {
+ vertx.createNetServer().connectHandler(new Handler<NetSocket>() {
+ public void handle(final NetSocket socket) {
+ Pump.createPump(socket, socket).start();
+ }
+ }).listen(1234);
+ }
+}

0 comments on commit ee54dd0

Please sign in to comment.