Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.CreateProducer Method

Create a NMS MessageProducer for the given Session and Destination, configuring it to disable message ids and/or timestamps (if necessary).

Delegates to

doCreateProducer
for creation of the raw NMS MessageProducer

[Visual Basic]
Protected Overridable Sub CreateProducer( _
   ByVal session As ISession, _
   ByVal destination As IDestination _
)
[C#]
protected virtual IMessageProducer CreateProducer(
   ISession session,
   IDestination destination
);

Parameters

session
the NMS Session to create a MessageProducer for
destination
the NMS Destination to create a MessageProducer for

Return Value

the new NMS MessageProducer

See Also

NmsTemplate Class | Spring.Messaging.Nms.Core Namespace | DoCreateProducer | MessageIdEnabled | MessageTimestampEnabled