Differences

This shows you the differences between two versions of the page.

Link to this comparison view

irc:1454540400 [2017/05/27 13:44] (current)
Line 1: Line 1:
 +[12:02:51] <​mweb>​ Hi there. I'm trying to replace the SockJSServer from vertx2 with the SockJSHandler from vertx3. The old SockJSServer stores already registered requestHandlers from the HttpServer as default handlers if nothing else matches. how can I use such a feature in vertx3?
 +
 +[16:22:05] <​diega>​ Hi, I remember a feature some time ago where you can annotate an interface as something like "a service"​ and somehow you get enabled to access its methods as regular java call or through the EventBus... Am I delusional? if I'm not, is that feature still on?
 +
 +[16:23:28] <​diega>​ oh, I think this is it :) https://​github.com/​vert-x3/​vertx-service-proxy
 +
 +[16:24:18] <rbt> <​clement>​ yes, it[unknown:​rsquo]s what you are looking for
 +
 +[16:24:41] <rbt> <​clement>​ diega: http://​vertx.io/​docs/​vertx-service-proxy/​
 +
 +[16:24:56] <​diega>​ thanks!
 +
 +[16:59:05] <​Dns_>​ Hi there! Could anyone help me with deploying my first app?) TIA
 +
 +[17:00:00] <rbt> <​clement>​ Hi DNS_
 +
 +[17:00:10] <rbt> <​clement>​ did you check the introduction to vert.x blog post series ?
 +
 +[17:00:27] <rbt> <​clement>​ http://​vertx.io/​blog/​my-first-vert-x-3-application/​
 +
 +[17:01:26] <​Dns_>​ Yes. I read it. But I have some error when I trying to run this jar
 +
 +[17:01:42] <​Dns_>​ ClassNotFoundException
 +
 +[17:02:54] <​Dns_>​ May be I did sth wrong when I composed FAT jar in IDEA..
 +
 +[17:03:42] <​Dns_>​ my jar doen't have vertx classes inside(
 +
 +[17:03:57] <​Dns_>​ only one class: MyFirstBerticle
 +
 +[17:04:04] <​Dns_>​ Verticle*
 +
 +[17:06:25] <rbt> <​clement>​ ok, how did you create the fat jar ?
 +
 +[17:06:31] <rbt> <​clement>​ and which class is not found ?
 +
 +[17:09:20] <​Dns_>​ so... tests were successfull! I added run configuration for build jar without parameters. Finally I have these contents after command jar tvf ..
 +
 +[17:09:31] <​Dns_>​ 229998 Mon Feb 01 13:06:04 MSK 2016 jackson-core-2.5.3.jar 1143162 Mon Feb 01 13:06:04 MSK 2016 jackson-databind-2.5.3.jar 170235 Mon Feb 01 13:06:04 MSK 2016 netty-buffer-4.0.28.Final.jar 441277 Mon Feb 01 13:06:04 MSK 2016 netty-codec-http-4.0.28.Final.jar 144086 Mon Feb 01 13:06:04 MSK 2016 netty-codec-4.0.28.Final.jar 421294 Mon Feb 01 13:06:04 MSK 2016 netty-common-4.0.28.Final.jar 246127 Mon Feb 01 13:06:04 MSK 2016 netty-handler-4
 +
 +[17:09:35] <​Dns_>​ opps
 +
 +[17:10:05] <​Dns_> ​     0 Thu Feb 04 14:35:24 MSK 2016 io/      0 Thu Feb 04 14:35:24 MSK 2016 io/​vertx/ ​     0 Thu Feb 04 14:35:24 MSK 2016 io/​vertx/​blog/ ​     0 Thu Feb 04 14:35:24 MSK 2016 io/​vertx/​blog/​first/ ​  2499 Thu Feb 04 14:35:24 MSK 2016 io/​vertx/​blog/​first/​MyFirstVerticle.class ​ 39815 Mon Feb 01 13:06:04 MSK 2016 jackson-annotations-2.5.0.jar 229998 Mon Feb 01 13:06:04 MSK 2016 jackson-core-2.5.3.jar 1143162 Mon Feb 01 13:06:04 MSK 2016 jackson
 +
 +[17:10:59] <​Dns_>​ very unconvenient chat(
 +
 +[17:11:32] <​Dns_>​ please give me a minute. I deploy my project and share a link
 +
 +[17:19:34] <​Dns_>​ clement, sorry for worrying! Your first app is ok! I did "vertx run first-app-fat.jar"​ instead of command in your article!
 +
 +[17:19:51] <rbt> <​clement>​ oh :)
 +
 +[17:20:10] <rbt> <​clement>​ packaging a fat jar is made to avoid having to use a special launcher
 +
 +[17:20:32] <rbt> <​clement>​ a special command line tools (sorry)
 +
 +[17:20:47] <rbt> <​clement>​ so, if you have a fat jar, no `vertx` just `java`
 +
 +[17:20:54] <rbt> <​clement>​ everything is in the fat jar
 +
 +[17:22:15] <​Dns_>​ wow.. You as a core developer of this great product and have i minute for answer on such stupid questions! You are great man! Thank you;)