MessageProducer
to send messages to the specified destination. A client uses a MessageProducer
object to send messages to a destination. Since Queue
and Topic
both inherit from Destination
, they can be used in the destination parameter to create a MessageProducer
object.
@param destination the Destination
to send to, or null ifthis is a producer which does not have a specified destination.
@return the MessageProducer
@throws JMSException if the session fails to create a MessageProducer dueto some internal error.
@throws InvalidDestinationException if an invalid destination isspecified.
@since 1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|