vert.x

Intellij IDEA debugger not working on Gradle Vert.X project

我怕爱的太早我们不能终老 提交于 2019-11-30 10:20:44
I'm developing a project using Vert.X framework using Gradle build tool. The problem I have is that breakpoints in IntelliJ simply doesn't work in any way I've tried. Here is a run configuration for Vert.X which I use in Gradle: run { args = [ 'run', mainVerticleName, "-conf", confPath, "--redeploy=$project.ext.watchForChange", "--launcher-class=$mainClassName", "--on-redeploy=$project.ext.doOnChange" ] } So the deployment is done using Gradle , runs without any issues, IntelliJ debugger is connected, but breakpoints are not working . The ways I've tried to make it work: 1) Gradle run

How to start Vert.x server from IntelliJ IDEA?

点点圈 提交于 2019-11-30 03:42:22
How do I start a simple Vert.x server from inside IntelliJ IDEA? My build.gradle is as below: apply plugin: 'java' version = '3.0.0' repositories { mavenCentral() } dependencies { compile 'io.vertx:vertx-core:3.0.0' } My Vertx-server, MyVertex.java is as below: package com.example; import io.vertx.core.AbstractVerticle; import io.vertx.core.Future; public class MyVerticle extends AbstractVerticle { @Override public void start(Future<Void> fut) { vertx.createHttpServer() .requestHandler(r -> r.response().end("<h1>Hello</h1>")) .listen(8081); } } And my IntelliJ run configuration is as below,

Run Vertx in an IDE

会有一股神秘感。 提交于 2019-11-30 00:30:38
Is there any way to run Vertx from within an IDE? I know I can create a server in a file and then call vertx run server.java from the command line, but is there a way to run the server.java file from within an IDE? sscarduzio create a maven project as the manual says. Then import the project as Maven project Create a new launcher (Eclipse) using as main class For Vert.x 2.x: " org.vertx.java.platform.impl.cli.Starter " For Vert.x 3.x: " io.vertx.core.Starter " In the tab "Program Arguments" type: " run your.package.ServerVerticle -conf conf.json " You can omit the conf.json if you don't have

vertx LoggerHandler not adding logback

Deadly 提交于 2019-11-29 20:54:37
问题 I am trying to use LoggerHandler to log all incoming requests. I am using logback.xml to specify appenders. I am setting system property for logging. System.setProperty("org.vertx.logger-delegate-factory-class-name", "org.vertx.java.core.logging.impl.SLF4JLogDelegateFactory"); Still it is logging everything in console not in file. 回答1: This worked for me with Vert.x 3.4.1: import static io.vertx.core.logging.LoggerFactory.LOGGER_DELEGATE_FACTORY_CLASS_NAME; import io.vertx.core.logging

Does vert.x have centralized filtering?

梦想的初衷 提交于 2019-11-29 15:36:00
I am new to Vert.X. Does Vert.x have a built in facility for centralized filters? What I mean are the kind of filters that you would use on a J2EE application. For instance, all pages have to go through the auth filter, or something like that. Is there a standardized way to achieve this in Vert.x? I know this question is quite old, but for those still looking for filter in Vertx 3, the solution is to use subRouter as a filter: // Your regular routes router.route("/").handler((ctx) -> { ctx.response().end("..."); }); // Have more routes here... Router filterRouter = Router.router(vertx);

How do I configure Vert.x event bus to work across cluster of Docker containers?

两盒软妹~` 提交于 2019-11-29 09:54:42
问题 In my current setup, I'm using the default multicast option of the Hazelcast cluster manager. When I link the instances of my containerized Vertx modules (via Docker networking links), I can see that they are successfully creating Hazelcast cluster. However, when I try publishing events on the event bus from one module, the other module doesn't react to it. I'm not sure how the network settings in the Hazelcast cluster related to the network settings for the event bus. At the moment, I have

Run Vertx in an IDE

半城伤御伤魂 提交于 2019-11-28 23:38:15
问题 Is there any way to run Vertx from within an IDE? I know I can create a server in a file and then call vertx run server.java from the command line, but is there a way to run the server.java file from within an IDE? 回答1: create a maven project as the manual says. Then import the project as Maven project Create a new launcher (Eclipse) using as main class For Vert.x 2.x: " org.vertx.java.platform.impl.cli.Starter " For Vert.x 3.x: " io.vertx.core.Starter " In the tab "Program Arguments" type: "

How to start Vert.x server from IntelliJ IDEA?

廉价感情. 提交于 2019-11-28 22:35:53
问题 How do I start a simple Vert.x server from inside IntelliJ IDEA? My build.gradle is as below: apply plugin: 'java' version = '3.0.0' repositories { mavenCentral() } dependencies { compile 'io.vertx:vertx-core:3.0.0' } My Vertx-server, MyVertex.java is as below: package com.example; import io.vertx.core.AbstractVerticle; import io.vertx.core.Future; public class MyVerticle extends AbstractVerticle { @Override public void start(Future<Void> fut) { vertx.createHttpServer() .requestHandler(r -> r

Websocket creation using sockjs-client/sockjs in angular2 webapp project

半腔热情 提交于 2019-11-26 23:41:29
问题 I'm using Angular2 webapp project for FRONT-END and Vertex3 for BACK-END. Using Sockjs-client i'm creating websocket (at client side) to create a communication channel between Frontend and Backend. I have installed sockjs-client using npm : npm install sockjs-client When I import sockjs-client in LoginService.ts file : import * as SockJS from 'sockjs-client'; export class LoginService { URL: string = 'http://localhost:8082/eventbus'; sock: SockJS; handlers = {}; private _opened: boolean =