Questions tagged [spring-reactive]

128 questions
0
votes
1 answer

Spring WebClient nested Mono according to status codes

Using WebClient I want to handle ClientResponse separately according to HTTP status codes. Below you see two new subscribe() method used in top doOnSuccess. How can I carry those nested Monos to WebClient's Mono chain? That is to say, how to…
gungor
  • 393
  • 3
  • 13
0
votes
1 answer

Spring WebClient POST to login.microsoftonline.com gives 404 error

I'm having a problem implementing Oauth2 with Azure AD using Spring Reactive WebClient (org.springframework.web.reactive.function.client.WebClient) in Kotlin, following this documentation:…
0
votes
1 answer

How to iterate over findPublisher and get list of names from the mongo reactive collection?

I have collection called "Person",after applying reactive find() on this collection ,it return the FindPublisher. How to iterate over this collections and get a list of a names .Here name is "column name". Person collection structure…
Prabhakar
  • 69
  • 2
  • 8
0
votes
1 answer

Uncovering Mono to T class

I'm new to reactive components. I did an api call with webclient and the response was wrapped in a Mono component. Is there a way to check the value assigned to the object class in Mono component received. The received response is wrapped in…
Sam
  • 115
  • 2
  • 10
0
votes
1 answer

Call not propagating to the service method from Spring Reactive Controller

I am a beginner to the spring webflux. We are currently migrating our application to Spring Webflux. No I have stuck with a problem. The following is my scenario. The main service class is calling the following service classes for…
0
votes
1 answer

Spring Webflux Mono always responds with successful response

I have a endpoint that takes id parameter and send delete product api to delete. productService.delete also returns Mono. The problem is when productService.delete method returns mono error, the endpoint always responds with http 200. And I can see…
0
votes
1 answer

How to use bodyToFlux for different type of subclasses emitted from server to match appropriate object type

I have emitter over http which is emitting events of different object types(different subclasses). A webclient which is subscribe to this stream need to check the type of event transmitted(map to type of object). How to achieve it as instance of…
0
votes
0 answers

Bridge RabbitMQ listener to Flux

I have a Reactive Spring Boot application consuming messages from RabbitMQ and persisting them in a (MongoDB) repository: @RabbitListener(...) public void processMessage(Message message) { repository.persist(message).subscribe(); } Assuming…
0
votes
1 answer

What is MonoProcessor in Spring reactive used for?

While looking at the source code of the WiretapConnector from Spring framework I stumbled upon an object of type MonoProcessor. I tried Googling explanations of uses for it but to no avail. Javadoc doesn't say much to a Reactive/Reactor…
Matej
  • 7,728
  • 4
  • 23
  • 30
0
votes
0 answers

Spring websocket; No adapter for handler

I've been trying to set up a simple WebSocketHandler implementation but I've been running into this error javax.servlet.ServletException: No adapter for handler [turnip.gg.TurnipWebSocketHandler@5fdceca2]: The DispatcherServlet configuration needs…
0
votes
2 answers

return Mono/Flux with 2 nested subscriptions

I need to return Mono / Flux for a function but this has 2 nested subscriptions. I am looking for a better solution to publish Mono/Flux only after this 2 subscription values are available then perform some operation to derieve finalValue. The…
0
votes
1 answer

Spring Cloud Stream access to raw Stream

Here is my use case, user subscribe to my stream using websocket (GraphQl with subscription), I need to return an instance of org.reactivestreams.Publisher (which should be my kafka topic subscription) filtering message by user id. To illustrate,…
Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96
0
votes
1 answer

Spring Reactive Programming: How to create a dynamic list of Publishers as input to Flux.merge

I'm new to Spring Reactive programming and I'm developing a REST endpoint that returns a Flux. For example: @PostMapping public Flux processRequests(@RequestBody List requests) { return…
James Whetstone
  • 341
  • 1
  • 3
  • 10
0
votes
1 answer

Spring reactive security

I am trying for reactive security and the unauthenticated calls are not going to auth manager. @Configuration @EnableWebFluxSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class WebSecurityConfig{ @Autowired private…
user1578872
  • 7,808
  • 29
  • 108
  • 206
0
votes
1 answer

Spring Reactive Stream - Unexpected Shutdown

We are using Spring Cloud Reactive Streams with RabbitMQ. Spring Reactive Stream appears to acknowledge the message as soon as it pulls it off the queue. So any errors unhandled exceptions that happens during the message processing need to be…
1 2 3
8 9