• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Spring Reactor Core Asynch  RSS feed

 
Ranch Hand
Posts: 153
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to learn Spring Reactor Core by trying to follow an article from "JavaPro" 1/18
However I cannot make the asynch examples work
Why is the following code not producing any output?





Many thanks,

Hans
 
Markus Schmider
Ranch Hand
Posts: 153
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also the following code does not produce any output

 
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Markus Schmider wrote:I am trying to learn Spring Reactor Core by trying to follow an article from "JavaPro" 1/18


Please provide full URL of articles/site so that this can be put into it's correct context. Not only that it will allow us to try this out exactly as posted on the original site.
 
Markus Schmider
Ranch Hand
Posts: 153
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://java-pro.de/magazin/

But you have to subscribe to the magazine (for free) to be able to download the pdf version.
Site and magazine are German.

But I copied the posted code directly from the pdf.
 
Pete Letkeman
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For this first posting this seems to work:You need to call a collection method such as then() or log() to activate the subscription methods.
It appears as though then() only activates subscribe once where as log() activates subscribe more then once.
 
Pete Letkeman
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For your second code block you need to call a collector method.
Previously you could call a "block()" method.
However, the reactive project has been updated since and they removed that method.

You are using reactor 3. What version is being used by the tutorials you are using?
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!