Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EmsTemplate.DoCreateProducer Method

Create a raw EMS MessageProducer for the given Session and Destination.

[Visual Basic]
Protected Overridable Sub DoCreateProducer( _
   ByVal session As ISession, _
   ByVal destination As Destination _
)
[C#]
protected virtual IMessageProducer DoCreateProducer(
   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

Remarks

If CacheJmsResource is true, then the producer will be created upon the first invocation and will retrun the same producer (per destination) on all subsequent calls.

Exceptions

Exception Type Condition
EMSException If there is any problem accessing the EMS API

See Also

EmsTemplate Class | Spring.Messaging.Ems.Core Namespace