6.4. Writing Direct Applications in Java JMS

6.4. Writing Direct Applications in Java JMS

This section describes three programs that implement direct messaging in Java JMS:

Unlike the C++ and Python examples, our Java JMS examples use JNDI to establish the server environment instead of using a separate configuration program. The publisher and listener each look for a queue with the correct name. The JMS library transparently creates destinations on the broker when required.