Not intended to be used directly. See EmsTemplate.
+ +ConvertAndSend and ReceiveAndConvert operations.
+
+ Converts a String to a EMS TextMessage, a byte array to a EMS BytesMessage, + a Map to a EMS MapMessage, and a Serializable object to a EMS ObjectMessage + (or vice versa).
+ + +Lookup method whenever it is appropriate.
+ Some classes might do this on initialization, while others might do it
+ on demand. The latter strategy is more flexible in that it allows for
+ initialization of the locator before the JNDI object is available.
+ createEmsTemplate method.
+
+ To be used with the EmsTemplate.Execute(ISessionCallback)} + method, often implemented as an anonymous inner class.
+Session
- Session, if any (so can be null)
Session.Close() call will also close the subscription.
+ Re-registering a durable consumer for the same subscription on the same
+ Session handle is not supported; close and reobtain a cached Session first.
+ <listener-container> element.
- - This method is never invoked if the parser is namespace aware - and was called to process the root node. -
-listener-container' tag.
- Session.Close() call will also close the subscription.
- Re-registering a durable consumer for the same subscription on the same
- Session handle is not supported; close and reobtain a cached Session first.
- <listener-container> element.
+ This method is never invoked if the parser is namespace aware + and was called to process the root node. +
null, the call will be ignored)
- The ConnectionFactory that the Connection was obtained from. (may be null)
- whether the Connection might have been started by the application.
null)
-
- whether to allow for a local EMS transaction
- that is synchronized with a Spring-managed transaction (where the main transaction
- might be a ADO.NET-based one for a specific DataSource, for example), with the EMS
- transaction committing right after the main transaction. If not allowed, the given
- ConnectionFactory needs to handle transaction enlistment underneath the covers.
-
- null if none found
- false.
- null if none found
- DoGetTransactionalSession method.
- null if none found
- null if none found
- Default is "true"; set this to "false" to allow for manual startup.
+
+ Invoked after population of normal object properties but before an init
+ callback like
true; the default 'running'
+ state is purely determined by false if such a restriction prevents listeners from running.
+ finally blocks in manual EMS code.
+ null)
+
+ finally blocks in manual EMS code.
+ null)
+
+ whether to call stop() before closing
+
+ finally blocks in manual EMS code.
+ null)
+
+ finally blocks in manual EMS code.
+ null)
+
+ finally blocks in manual EMS code.
+ null)
+
+ finally blocks in manual EMS code.
+ null.
+ Session object to use
+
+ the EMS MessageProducer object to use
+
+ Session, if any (can be null)
+ ConnectionFactory. Binds a
- Connection/Session pair from the specified ConnecctionFactory to the thread,
- potentially allowing for one thread-bound Session per ConnectionFactory.
+ Message listener adapter that delegates the handling of messages to target
+ listener methods via reflection, with flexible message type conversion.
+ Allows listener methods to operate on message content types, completely
+ independent from the EMS API.
null.)
+ String or byte array), it will get
+ wrapped in a EMS Message and sent to the response destination
+ (either the EMS "reply-to" destination or the null)null).
+ The original request message.
+ The session to operate on (may be null).
+ Message (never null)null
+ it is returned; if it is null, then the configured
+ null, then an
+ null)IConnectionFactory interface,
- indicating how to release Connections obtained from it.
+ Exception to be thrown when the execution of a listener method failed.
true if the domain is pub-sub, false if P2P
+ createEmsTemplate method.
-
- Message (never null)
+
+ Message to be sent
+ Not intended to be used directly. See EmsTemplate.
- -DoGetTransactionalSession method.
To be used with the EmsTemplate.Execute(ISessionCallback)} - method, often implemented as an anonymous inner class.
-Session
-
- Session, if any (so can be null)
+ null, the call will be ignored)
+ The ConnectionFactory that the Connection was obtained from. (may be null)
+ whether the Connection might have been started by the application.
+ null)
+
+ whether to allow for a local EMS transaction
+ that is synchronized with a Spring-managed transaction (where the main transaction
+ might be a ADO.NET-based one for a specific DataSource, for example), with the EMS
+ transaction committing right after the main transaction. If not allowed, the given
+ ConnectionFactory needs to handle transaction enlistment underneath the covers.
+
+ null if none found
+ false.
+ null if none found
+ DoGetTransactionalSession method.
+ null if none found
+ null if none found
+ To be used with the EmsTemplate.Execute(IProducerCallback) - method, often implemented as an anonymous inner class.
- -The typical implementation will perform multiple operations on the - supplied EMS Session and MessageProducer.
-Session object to use
-
- the EMS MessageProducer object to use
-
- Session, if any (can be null)
- Message (never null)
-
- Message to be sent
- Session object to use
-
- the EMS MessageProducer object to use
-
- Session, if any (can be null)
- Session, if any (so can be null)
- Lookup method whenever it is appropriate.
- Some classes might do this on initialization, while others might do it
- on demand. The latter strategy is more flexible in that it allows for
- initialization of the locator before the JNDI object is available.
- Default is "true"; set this to "false" to allow for manual startup.
-
- Invoked after population of normal object properties but before an init
- callback like
true; the default 'running'
- state is purely determined by false if such a restriction prevents listeners from running.
- null.)
- String or byte array), it will get
- wrapped in a EMS Message and sent to the response destination
- (either the EMS "reply-to" destination or the null)null).
- The original request message.
- The session to operate on (may be null).
- Message (never null)null
- it is returned; if it is null, then the configured
- null, then an
- null)listener-container' tag.
ConvertAndSend and ReceiveAndConvert operations.
+ Converts a String to a EMS TextMessage, a byte array to a EMS BytesMessage, - a Map to a EMS MapMessage, and a Serializable object to a EMS ObjectMessage - (or vice versa).
- - -true if the domain is pub-sub, false if P2P
+
+ IConnectionFactory interface,
+ indicating how to release Connections obtained from it.
+ To be used with the EmsTemplate.Execute(IProducerCallback) + method, often implemented as an anonymous inner class.
-The typical implementation will perform multiple operations on the + supplied EMS Session and MessageProducer.
+Session object to use
+
+ the EMS MessageProducer object to use
+
+ Session, if any (can be null)
+ Session, if any (so can be null)
+ ConnectionFactory. Binds a
+ Connection/Session pair from the specified ConnecctionFactory to the thread,
+ potentially allowing for one thread-bound Session per ConnectionFactory.
+ true if the domain is pub-sub, false if P2P
-
- true if the domain is pub-sub, false if P2P
-
- finally blocks in manual EMS code.
- null)
-
- finally blocks in manual EMS code.
- null)
-
- whether to call stop() before closing
-
- finally blocks in manual EMS code.
- null)
-
- finally blocks in manual EMS code.
- null)
-
- finally blocks in manual EMS code.
- null)
-
- finally blocks in manual EMS code.
+ Initializes a new instance of the null.
+ The connection factory to obtain connections from.