createConsumer
public MessageConsumer createConsumer(Destination destination) throws JMSException;
Creates a MessageConsumer for the specified Destination. Since Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageConsumer.
- Parameters
- destination - the Destination to access.
- Returns
- MessageConsumer
- Exceptions
- JMSException - if the command fails due to some internal JMS error.
uj30100_