<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.
null to indicate
creation of a raw standard Sessionfalse. Switch this to true
to automatically trigger recover based on your messaging provider's
exception notifications.
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 NMS 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 NMS
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
ConnectionFactory interface,
indicating how to release Connections obtained from it.
Note: This is an SPI class, not intended to be used by applications.
null)
ConnectionFactory. Binds a
Connection/Session pair from the specified ConnecctionFactory to the thread,
potentially allowing for one thread-bound Session per ConnectionFactory.
MessageProducer.close() calls
and/or MessageConsumer.close() calls before Session.commit(),
with the latter supposed to commit all the messages that have been sent through the
producer handle and received through the consumer handle. As a safe general solution,
always pass in a The Session typically is provided by an instance of the MessageTemplate class.
IMessage (never null)
Message to be sent
Implemented by NmsTemplate. Not often used but a useful option to enhance testability, as it can easily be mocked or stubbed.
Provides NmsTemplate's
send(..) and
receive(..) methods that mirror various NMS API methods.
See the NMS specification and NMS API docs for details on those methods.
This will only work with a default destination specified!
This will only work with a default destination specified!
This will only work with a default destination specified!
This will only work with a default destination specified!
This will only work with a default destination specified!
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires.
To be used with the MessageTemplate.Execute(IProducerCallback) method, often implemented as an anonymous inner class.
The typical implementation will perform multiple operations on the supplied NMS Session and MessageProducer.
Session object to use
the NMS MessageProducer object to use
Session, if any (can be null)
Session
Session, if any (so can be null)
Message (never null)
Message to be sent
createNmsTemplate method.
Not intended to be used directly. See NmsTemplate.
execute(ISessionCallback),
allowing the NMS Connection to be started on the fly.
Use execute(ISessionCallback) for the general case.
Starting the NMS Connection is just necessary for receiving messages,
which is preferably achieved through the receive methods.
null).
null if nonenull if none found
null if none found
Delegates to doCreateProducer for creation of the raw
NMS MessageProducer
null)
Note: The value of PubSubDomain affects the behavior of this method. If PubSubDomain equals true, then a Session is passed to the callback. If false, then a Session is passed to the callback.
This will only work with a default destination specified!
This will only work with a default destination specified!
This will only work with a default destination specified!
This will only work with a default destination specified!
This will only work with a default destination specified!
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires
null
null if none.null if noneThis method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
null if none).
See the NMS specification for a detailed definition of selector expressions.
null if the timeout expires.
The default converter is a SimpleMessageConverter, which is able to handle IBytesMessages, ITextMessages and IObjectMessages.
Default it "true" aka delivery mode "PERSISTENT".
Session object to use
the NMS MessageProducer object to use
Session, if any (can be null)
Session, if any (so can be null)
null.)
String or byte array), it will get
wrapped in a NMS Message and sent to the response destination
(either the NMS "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)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.
OnMessage methodsnull
if the configured destination is not an actual Destination type;
c.f. null if the configured destination is not a
string type; c.f. null if none)..ConvertAndSend and ReceiveAndConvert operations.
Converts a String to a NMS ITextMessage, a byte array to a NMS IBytesMessage, a Map to a NMS IMapMessage, and a Serializable object to a NMS IObjectMessage (or vice versa).
true if the domain is pub-sub, false if P2P
true if the domain is pub-sub, false if P2P
finally blocks in manual NMS code.
null)
finally blocks in manual NMS code.
null)
whether to call stop() before closing
finally blocks in manual NMS code.
null)
finally blocks in manual NMS code.
null)
finally blocks in manual NMS code.
null)