Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.CreateProducer Method

Create a EMS 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 EMS MessageProducer

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

Parameters

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

Return Value

the new EMS MessageProducer

Exceptions

Exception TypeCondition
EMSExceptionIf there is any problem accessing the EMS API

See Also

EmsTemplate Class | Spring.Messaging.Ems.Core Namespace | DoCreateProducer | MessageIdEnabled | MessageTimestampEnabled