Questions tagged [vertx-verticle]

175 questions
0
votes
2 answers

how to implement keep alive in hazelcast cluster of verticles

i have some verticles that belong to the same cluster and they send a hello message over the event bus -the message is basically the sending verticle's name- to a receiver verticle which stores the message in a map. i want to implement a keep alive…
0
votes
1 answer

Receipt Acknowledgment for publisher in VertX AMQP Bridge

How to receive acknowledgment for publisher in VertX AMQP Bridge to confirm on message receipt at solace VMR server.
0
votes
1 answer

How to apply concurrent processing on worker verticles using vert.x

Vert.x docs mentioning this : By default worker verticle instance will only be executed by one thread at any one time (it is not concurrent). So that means that if I have Verticle with 20 instances e.g: …
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

Sharing objects with all verticles instances

My application, an API server, is thought to be organized as follows: MainVerticle is called on startup and should create all necessary objects for the application to work. Mainly a mongoDB pool of connections (MongoClient.createShared(...)) and a…
mszmurlo
  • 1,250
  • 1
  • 13
  • 28
0
votes
2 answers

Is it possible to generate a vertx service proxy that references an rx vertx instance?

I'm trying to develop a database service proxy and using an verticle that extends io.vertx.reactivex.core.AbstractVerticle, so that I can use rxJava semantics around database calls. Problem is, when I code generate the service proxy, I get…
Robin Coe
  • 750
  • 7
  • 28
0
votes
1 answer

How to mock EntityBus.rxSend()

The io.vertx.reactivex.core.eventbus.EventBus.rxSend() method has the following signature: public Single> rxSend(String address, Object message, DeliveryOptions…
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

Creating multiple HTTP servers on the same host/port

I want to run multiple, non-clustered verticles on my webserver. Each verticle is started by a separate process/commandline and creates his own HTTP server (vertx.createHttpServer) for the same host and the same port with unique routes. However,…
xpages-noob
  • 1,569
  • 1
  • 10
  • 37
0
votes
1 answer

VertX client implementation for connecting Solace VMR Server

How can we implement VertX Client connectivity to Solace VMR Server? We are connecting Solace VMR using VertX Standalone program as of now. Is there any standard implementation or patterns we can use for connecting solace VMR using VertX Cient like…
0
votes
1 answer

Vert.x project in Kotlin deploy in Docker

I have a project written in vert.x framework in Kotlin. I build jar file, and I want to run this jar through Docker. But docker can't find my main Verticle file. Dockerfile: FROM vertx/vertx3 ENV VERTICLE_NAME OpenApiRoutingVerticle.kt ENV…
Bakhrom Achilov
  • 157
  • 1
  • 2
  • 14
0
votes
1 answer

Vert.x deployment on aws (best practice)

I'm beginner in web development. I used Vert.x framework. And I got app.jar file for the server on aws. Every time I run it with this command: java -jar app.jar But I'm not sure, that is right way (I think it's nonprofessional). Who Can tell, what…
Bakhrom Achilov
  • 157
  • 1
  • 2
  • 14
0
votes
1 answer

Vertx 3 - SockJS socket opening canceled

I created a new verticle that should response for HTTP requests and SockJS bridged events. Based on this question https://stackoverflow.com/questions/41516328 and vert.x manual https://vertx.io/docs/vertx-web/java/#_sockjs I created this piece of…
dev1991
  • 3
  • 3
0
votes
1 answer

Vertx Java Client throwing "SMF AD bind response error" while connecting solace vmr Server

When I am trying to connect solace VMR Server and deliver the messages from a Java client called Vertx AMQP Bridge. I am able to connect the Solace VMR Server but after connecting, not able to send messages to solace VMR. I am using below sender…
0
votes
2 answers

How to mock io.vertx.ext.jdbc.JDBCClient using any mocking frameworks

I would like to mock io.vertx.ext.jdbc.JDBCClient to unit-test the below verticle code: class A { private final Helper help = new Helper(); public JsonObject checkEmailAvailability(String email, JDBCClient jdbc) throws SignUpException { …
Anand
  • 1
  • 3
0
votes
1 answer

Vertex upload file: BodyHandler methods not working

I want to upload avatars. My endpoints are set with OpenAPI3RouterFactory(api.yaml file). api.yaml: #other endpoints /api/v1/upload-avatar: post: summary: Uploading avatars endpoint operationId: upload-avatar tags: - sign…
Bakhrom Achilov
  • 157
  • 1
  • 2
  • 14
0
votes
1 answer

Unit test consumers in Vertx

I have a snippet of code that I want to unit test. this.vertx.eventBus().consumer(VERTICLE_ID).toObservable() .subscribe(msg -> doSomethingCool()); and my consumer method: private void doSomethingCool(){ // Some cool stuff. } Now I…
pmartin8
  • 1,545
  • 1
  • 20
  • 36
1 2 3
11
12