Questions tagged [vertx-verticle]

175 questions
0
votes
0 answers

Loading non-thread-safe native lib in Vert.x: are multi-instance verticles confined to their own process

I would like to write a verticle that renders graphs using GraphViz. I would like to do it by loading the native (shared) libs into my JVM and calling it via JNI. Now, GraphViz itself is not thread-safe. It is not enough to run each of the…
0
votes
1 answer

System congestion by verticles

There is an application. It consists of many Verticles. They run one after another in a chain. Each following is a consequence of the successful implementation of the previous one. A lot of them. They make several requests to external systems. The…
maksim2112
  • 381
  • 7
  • 21
0
votes
1 answer

In Vert.x web will multiple requests be interleaved on the same thread

So I know that in standard vert.x web the request will always be on the same thread even as it goes through async operations, unless you manually spin up a thread. What I'm trying to figure out is if security information can be kept on the thread…
Zipper
  • 7,034
  • 8
  • 49
  • 66
0
votes
3 answers

Vertx multiple event loops

I'm a beginner with Vertx and I'm using this link as the starter code. However, there is no main file and I don't see how the MainVerticle is deployed. I would like to set some deployment options for the MainVerticle but since there is no main…
user782400
  • 1,617
  • 7
  • 30
  • 51
0
votes
0 answers

Vert.x Future/Promise Handler not called in Groovy

I got a pretty small Verticle that should connect to a database and regularly poll a table and send the objects to the event bus. Thus far I can connect to the database, but the handler afterwards gets not executed and my polling timer does not…
Jazzschmidt
  • 989
  • 12
  • 27
0
votes
1 answer

Difference between standard verticle and worker verticle

I am confused about standard verticle and worker verticle in Vertx. And What are the use cases of them?
Khanh Lâm
  • 57
  • 2
  • 5
0
votes
0 answers

"Unexpected exception in route" with POST using Content-Type:application/x-www-form-urlencoded (Content-Type:application/json working fine)

I'm creating a post request that can except "Content-Type:application/x-www-form-urlencoded" using "vert.x". And getting "Unexpected exception in route java.lang.NullPointerException" but the same request works fine when I remove the content type. I…
Mohit
  • 11
  • 6
0
votes
1 answer

Accessing array elements in a vertx JsonObject

Given the following io.vertx.core.json.JsonObject: { "111":[ { "A":"a1", }, { "A":"a2", }, { "A":"a3", } ], "222":[ { "A":"a10", }, { "A":"a20", }, { "A":"a30", } ] } As the name of the outer elements which contain…
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

RxJava - retrieving entry in Observable in second flatMapSingle

We have a vertx verticle which receives an id and uses it see if an entity with the id exist in a database. It contains the following logic: if (itemFound) { e.onNext(item_which_was_found) } else { e.onNext(null); } Another verticle has an…
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

Working with Vertx JsonArray and RxJava Observables

A vertx JsonObject contains a vertx JsonArray, similar to: { "myArray":[ {"id":"1", name:"Yael" }, {"id":"2", name:"Haddasa"} ] } What is the correct way to create an RxJava Observable using the array, so that the observable will handle…
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

Traversing a Vertx JsonArray using RxJava

I have a verticle which consumes incoming messages. Each message will be a vertx JsonObject, which contains a vertx JsonArray. I want to execute logic for each element in this array. The logic itself is contained in a separate verticle. This second…
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

How do I launch clients on different event loops?

I am creating a testing application that suppose to have many connections to a server. When I create a client from my Verticle it is always processing the connection and messages on the same tread. When I created my verticle I…
lfmunoz
  • 822
  • 1
  • 9
  • 16
0
votes
1 answer

Vert.x. How to enable automatic redeploy in a project with multiple modules?

How can we enable auto redeploy for multiple modules when using Vert.x? For example, if we have a structure like this one: build.gradle settings.gradle main build.gradle src/main/java/MainVerticle.java …
GarouDan
  • 3,743
  • 9
  • 49
  • 75
0
votes
1 answer

How to write Vertx worker verticle - indefinite blocking operation?

Following class is my worker verticle in which i want to execute a blocking code on recieving a message from event bus on a channel named events-config. The objective is to generate and publish json messages indefinitely until i receive stop…
Mozhi
  • 757
  • 1
  • 11
  • 28
0
votes
1 answer

Purpose and behaviour of init() in Vertx class

I have the following verticle for testing purposes: public class UserVerticle extends AbstractVerticle { private static final Logger log = LoggerFactory.getLogger(UserVerticle.class); @Override public void start(Future sf) { …
mszmurlo
  • 1,250
  • 1
  • 13
  • 28