MessageConsumer Used to receive messages. It is important to note that a Connection is thread safe, but Sessions , MessageProducers and MessageConsumers are not. The recommended strategy is to use one Session per application thread. MessageProducer and MessageConsumer Contain an HOBJ that defines a particular queue for writing to or reading from. This is consistent with the JMS restriction of a single thread per Session.
PUTs can use remote queues, but GETs can only be applied to queues on the local queue manager.
One of the key ideas in JMS is that it is possible, and strongly recommended, to write application programs using only references to the interfaces in javax.jms . A JMS application can retrieve these objects from the namespace and use them without needing to know which vendor provided the implementation.