File: README.txt

package info (click to toggle)
qpid-proton 0.14.0-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,632 kB
  • ctags: 20,083
  • sloc: java: 39,624; ansic: 29,389; python: 16,581; cpp: 11,250; ruby: 6,618; perl: 2,641; php: 1,033; xml: 957; sh: 230; pascal: 52; makefile: 32
file content (22 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This directory contains java examples that use the messenger API.
Based on the python examples in  ../py

  Send.java - a simple example of using the messenger API to send messages
  Recv.java - a simple example of using the messenger API to receive messages

Note that depending on the address passed into these scripts, you can
use them in either a peer to peer or a brokered scenario.

For brokered usage:
  java Recv.class amqp://<broker>/<queue>
  java Send.class -a amqp://<broker>/<queue> msg_1 ... msg_n

For peer to peer usage:
  # execute on <host> to receive messages from all local network interfaces
  java Recv.class amqp://~0.0.0.0
  java Send.class -a amqp://<host> msg_1 ... msg_n

Or, use the shell scripts "recv" and "send" to run the java programs:
recv [-v] [-n MAXMESSAGES] [-a ADDRESS] ... [-a ADDRESS]
send [-a ADDRESS] [-s SUBJECT] MESSAGE ... MESSAGE