Skip to content


Repository files navigation


Maven Central Maven Central (snapshot) Codecov Java Version


JVM Platform Status
OpenJDK (Temurin) Current Linux Build (OpenJDK (Temurin) Current, Linux)
OpenJDK (Temurin) LTS Linux Build (OpenJDK (Temurin) LTS, Linux)
OpenJDK (Temurin) Current Windows Build (OpenJDK (Temurin) Current, Windows)
OpenJDK (Temurin) LTS Windows Build (OpenJDK (Temurin) LTS, Windows)


The jsay package provides a tiny command-line JMS sender.


  • Tiny command-line JMS message sender.
  • ISC license.


The jsay command-line tool connects to a message broker, sends a single text message, and then disconnects and exits.

INFO [main] com.io7m.jsay.Main: Usage: jsay [options]
  * --address
      The message address
  * --broker-uri
      The message broker URI
      The message expiry time
      The message file (if not specified, data is read from stdin)
      Default: /dev/stdin
      The message broker password
      The destination is a topic, not a queue.
      Default: false
      The message broker user
      The level of logging verbosity
      Default: INFO
      Possible Values: [TRACE, DEBUG, INFO, WARN, ERROR]

The following invocation sends a Hello world! message to the JMS destination named announcements on the given broker:

$ echo 'Hello world!' | java -jar jsay.jar \
  --address announcements \
  --broker-uri tcp:// \
  --expires 2024-01-01T00:00:00+00:00