Start building

Messaging and events

JMS · browse then request / reply

Inspect a queue without consuming it, then use a separate approved JMS connection to request a correlated reply. A timeout never automatically resends the request.

  • JMS → JMS
  • Intermediate
  • 4 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processJMS · browse then request / reply5 activities

Scroll sideways to see the whole flow.

Flow diagram of JMS · browse then request / reply5 activities and 4 transitions: Start, Browse orders without acknowledging, Request pricing through a temporary reply queue, Parse the JSON reply, End.StartstartBrowse orders withoutacknowledgingjms.browse1Request pricingthrough a temporary…jms.request_reply2Parse the JSON replyjson.parse3Endend
List the 5 activities and 4 transitions

Activities

  1. Start start
  2. Browse orders without acknowledging jms.browse
  3. Request pricing through a temporary reply queue jms.request_reply
  4. Parse the JSON reply json.parse
  5. End end

Transitions

  • Start → Browse orders without acknowledging (on success)
  • Browse orders without acknowledging → Request pricing through a temporary reply queue (on success)
  • Request pricing through a temporary reply queue → Parse the JSON reply (on success)
  • Parse the JSON reply → End (on success)

Walkthrough

  1. Browse orders without acknowledgingInspect up to 100 TextMessages without consuming or acknowledging. Not a consistent queue snapshot.
  2. Request pricing through a temporary reply queueSend a request with JMSReplyTo set to a private temporary queue, await a correlated reply, then acknowledge it. Timeout never resends.
  3. Parse the JSON replyParse strict JSON; reject duplicate keys, NaN and Infinity.

What you will practise

  • Inspect a queue without consuming it, then use a separate approved JMS connection to request a correlated reply. A timeout never automatically resends the request.
  • Shared connection IDs stay explicit. Simulation uses fixtures; live actions require operator approval.

Sample cases

1 case with 3 assertions, run with python -m server.integration examples --all in simulation.

End-to-end sample

Passed

Execute the actual flow with explicit external fixtures.

Expected result Every activity completes and the expected final result matches.

3/3 assertions

  • Flow completes
  • Final output
  • No unconfirmed receipts

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
  • Java 17+, the included JMS bridge and your provider's JMS JARs (not bundled) needed only for live connections; simulation uses fixtures
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • orders_bus jms · jms.browse
  • pricing_bus jms · jms.request_reply
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
2c8a08a80829f1a1e5f10adc5a515281ee0df9b356a12890f9fbda38c9fee08f
Closure SHA-256
2a61540dcaaafa3ab20b58f3e50938778ee08011ad8b3a2f7dff41ffac085cb1
Runtime
1.27.0
Results
1/1 cases, 3/3 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/jms_request_reply_lab.json
  • server/integration/templates/jms_request_reply_lab.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example jms_request_reply_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check