Description of problem:
The Drain and Spout examples used in qpid-java-examples rpm contains non JMS classes for creating destinations.
Insted of doing,
Destination dest = new AMQAnyDestination(address);
the following is better,
Destination dest = new session.createQueue(address);
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Drain and Spout are not meant to be code examples, rather utilities that can be used to learn and understand the addressing syntax.
It is actually semantically incorrect to use session.createQueue instead of AMQAnyDestination when you actually want to use it for a topic.
Therefore it's best to leave the Drain and Spout examples as it is and mention explicitly in the documentation that drain and spout are not code examples.
We need to provide a proper application that can be used as a code example in all the client languages and then use that as a basis when explaining code segments in the documentation.