A client uses a {@code JMSConsumer} object to receive messages thathave been sent to a destination. @param destination the {@code Destination} to access. @exception JMSRuntimeException if the session fails to create a {@code JMSConsumer}due to some internal error. @exception InvalidDestinationRuntimeException if an invalid destination is specified.
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.
@param destination the Destination to access.
@return the MessageConsumer
@throws JMSException if the session fails to create a consumer due tosome internal error.
@throws InvalidDestinationException if an invalid destination isspecified.
@since 1.1
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |