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
|
|
|
|
|
|