WebLogic Messaging API Class Library


Creates an IMessageProducer to send messages to the specified destination.

A client uses an IMessageProducer object to send messages to a destination. Since IQueue and ITopic both inherit from IDestination, they can be used in the destination parameter to create a IMessageProducer object.



the IDestination to send to, or null if this is a producer which does not have a specified destination.

Return Value

An IMessageProducer for the specified destination


Exception TypeCondition
MessageExceptionif the session fails to create a IMessageProducer due to some internal error.
InvalidDestinationExceptionif an invalid destination is specified.

See Also

ISession Interface | WebLogic.Messaging Namespace