null
+ /// 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)..OnMessage methodsDefault 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).
+ protected virtual void HandleResult(object result, Message request, Session session)
+ {
+ if (session != null)
+ {
+ if (logger.IsDebugEnabled)
+ {
+ logger.Debug("Listener method returned result [" + result +
+ "] - generating response message for it");
+ }
+ Message response = BuildMessage(session, result);
+ PostProcessResponse(request, response);
+ Destination destination = GetResponseDestination(request, response, session);
+ SendResponse(session, destination, response);
+ }
+ else
+ {
+ if (logger.IsDebugEnabled)
+ {
+ logger.Debug("Listener method returned result [" + result +
+ "]: not generating response message for it because of no EMS Session given");
+ }
+ }
+ }
+
+ /// Message (never null)null
+ /// it is returned; if it is null, then the configured
+ /// null, then an
+ /// null)