WebLogic Messaging API Class Library |

# IMessageProducer.Send Method (IDestination, IMessage)

Sends a message to a destination for an unidentified message producer. Uses the `IMessageProducer`'s delivery mode, priority, and time to live.

Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent.

void Send(
IDestination destination,
IMessage message
);

#### Parameters

IDestination
  the destination to send this message to
IMessage
  the message to send

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to send the message due to some internal error.
MessageFormatException | if an invalid message is specified.
InvalidDestinationException | if a client uses this method with an invalid destination.
NotSupportedException | if a client uses this method with a `IMessageProducer` that specified a destination at creation time.

#### See Also

IMessageProducer Interface | WebLogic.Messaging Namespace | IMessageProducer. Overload List | CreateProducer