Skip to content

DOCSP-61803: JavaRS Getting Started - #8

Open
tmcneil-mdb wants to merge 3 commits into
mainfrom
DOCSP-61803-JavaRS-Get-Started
Open

DOCSP-61803: JavaRS Getting Started#8
tmcneil-mdb wants to merge 3 commits into
mainfrom
DOCSP-61803-JavaRS-Get-Started

Conversation

@tmcneil-mdb

@tmcneil-mdb tmcneil-mdb commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary | JIRA

Adds the Java Reactive Streams Get Started sample application under java-rs/hello-world, mirroring the existing python/hello-world and java/hello-world (Java Sync) samples. The app connects to a MongoDB deployment using the connection string in the MONGODB_URI environment variable, seeds a few sample product documents into the get_started.products collection, then queries and prints one of them.

Because the reactive streams driver returns a Publisher for every operation, the sample uses Project Reactor matching the current reactive streams Get Started docs.

Changes

  • java-rs/hello-world/src/main/java/HelloWorld.java — sample application
  • java-rs/hello-world/pom.xml — Maven build
  • java-rs/hello-world/README.md — setup and run instructions
  • java-rs/hello-world/.gitignore
  • Added the Java Reactive Streams entry to the root README

Verified end-to-end: mvn compile exec:java prints the expected document.

Open questions:

  1. Maven vs. Gradle
    This sample is written for Maven only (pom.xml, mvn compile exec:java), consistent with the Java Sync sample. However, the current reactive streams Get Started documentation also supports Gradle, so a reader following the Gradle path has no matching sample to clone.

We should to decide how to cover Gradle before this ships.

  1. README assumes a Unix/Linux shell

@tmcneil-mdb tmcneil-mdb changed the title DOCSP-61803-JavaRS-Getting Started DOCSP-61803: JavaRS-Getting Started Jul 31, 2026
@tmcneil-mdb tmcneil-mdb changed the title DOCSP-61803: JavaRS-Getting Started DOCSP-61803: JavaRS Getting Started Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant