Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CachingConnectionFactory Members

CachingConnectionFactory overview

Public Instance Constructors

CachingConnectionFactory Overloaded. Initializes a new instance of the CachingConnectionFactory class.

Public Instance Properties

CacheConsumers Gets or sets a value indicating whether o cache JMS MessageConsumers per NMS Session instance.
CacheProducers Gets or sets a value indicating whether to cache MessageProducers per Session instance. (more specifically: one MessageProducer per Destination and Session).
ClientId (inherited from SingleConnectionFactory) Gets or sets the client id for the single Connection created and exposed by this ConnectionFactory.
ExceptionListener (inherited from SingleConnectionFactory) Gets or sets the exception listener implementation that should be registered with with the single Connection created by this factory, if any.
IsActive Gets or sets a value indicating whether this instance is active.
ReconnectOnException (inherited from SingleConnectionFactory) Gets or sets a value indicating whether the single Connection should be reset (to be subsequently renewed) when a NMSException is reported by the underlying Connection.
SessionCacheSize Gets or sets the size of the session cache.
TargetConnectionFactory (inherited from SingleConnectionFactory) Gets or sets the target connection factory which will be used to create a single connection.

Public Instance Methods

AfterPropertiesSet (inherited from SingleConnectionFactory) Ensure that the connection or TargetConnectionFactory are specified.
CreateConnection (inherited from SingleConnectionFactory)Overloaded. Creates the connection.
Dispose (inherited from SingleConnectionFactory) Close the underlying shared connection. The provider of this ConnectionFactory needs to care for proper shutdown. As this object implements IDisposable an application context will automatically invoke this on distruction o
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetSessionOverloaded. Obtaining a cached Session.
GetType (inherited from Object)Gets the Type of the current instance.
InitConnection (inherited from SingleConnectionFactory) Initialize the underlying shared Connection. Closes and reinitializes the Connection if an underlying Connection is present already.
OnException (inherited from SingleConnectionFactory) Exception listener callback that renews the underlying single Connection.
ResetConnection Resets the Session cache as well as resetting the connection.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

CloseConnection (inherited from SingleConnectionFactory) Closes the given connection.
DoCreateConnection (inherited from SingleConnectionFactory) reate a JMS Connection via this template's ConnectionFactory.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetCachedSessionWrapper Wraps the given Session so that it delegates every method call to the target session but adapts close calls. This is useful for allowing application code to handle a special framework Session just like an ordinary Session.
GetSharedConnection (inherited from SingleConnectionFactory) Wrap the given Connection with a proxy that delegates every method call to it but suppresses close calls. This is useful for allowing application code to handle a special framework Connection just like an ordinary Connection from a ConnectionFactory.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
PrepareConnection (inherited from SingleConnectionFactory) Prepares the connection before it is exposed. The default implementation applies ExceptionListener and client id. Can be overridden in subclasses.

See Also

CachingConnectionFactory Class | Spring.Messaging.Nms.Connections Namespace