org.ikasan.framework.initiator.messagedriven
Class RawMessageDrivenInitiator
java.lang.Object
org.ikasan.framework.initiator.AbstractInitiator
org.ikasan.framework.initiator.messagedriven.JmsMessageDrivenInitiatorImpl
org.ikasan.framework.initiator.messagedriven.RawMessageDrivenInitiator
- All Implemented Interfaces:
- javax.jms.MessageListener, Initiator, JmsMessageDrivenInitiator, ListenerSetupFailureListener, MonitorSubject
public class RawMessageDrivenInitiator
- extends JmsMessageDrivenInitiatorImpl
A JmsMessageDrivenInitiator implementation that seeks to create and fire new Events based
on raw JMS messages.
This implementation places no expectation on the incoming message data. Do not use this for deserialising existing
Events, rather use the EventMessageDrivenInitiator
- Author:
- Ikasan Development Team
| Fields inherited from class org.ikasan.framework.initiator.AbstractInitiator |
error, errorLoggingService, EXCEPTION_ACTION_IMPLIED_ROLLBACK, exceptionHandler, excludedEventService, exclusions, flow, moduleName, monitorListeners, name, retryCount, stopping, UNSUPPORTED_EXCLUDE_ENCONTERED |
|
Method Summary |
protected org.apache.log4j.Logger |
getLogger()
Provides access to the implementation class specific logger instance |
protected Event |
handleTextMessage(javax.jms.TextMessage message)
JMS Message specific type handling for TextMessage
Subclasses that wish to support this Message type will override this |
boolean |
isRespectPriority()
Accessor for respectPriority |
void |
setRespectPriority(boolean respectPriority)
Respect the priority of received messages by setting this on the Event |
| Methods inherited from class org.ikasan.framework.initiator.messagedriven.JmsMessageDrivenInitiatorImpl |
anesthetistOperating, cancelRetryCycle, completeRetryCycle, continueRetryCycle, getMessageListenerContainer, getType, handleBytesMessage, handleMapMessage, handleObjectMessage, handleStreamMessage, isRecovering, isRunning, notifyListenerSetupFailure, onMessage, setListenerSetupFailureRetryDelay, setMaxListenerSetupFailureRetries, setMessageListenerContainer, startInitiator, startRetryCycle, stopInitiator |
| Methods inherited from class org.ikasan.framework.initiator.AbstractInitiator |
addListener, getExceptionHandler, getExclusions, getFlow, getHandledEventCount, getLastEventTime, getModuleName, getMonitorListeners, getName, getRetryCount, getState, handleAction, handleRetry, invokeFlow, invokeFlow, isError, isStopping, logError, notifyMonitorListeners, removeListener, resume, setErrorLoggingService, setExcludedEventService, start, stop, stopInError, supportsExclusions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
payloadFactory
protected PayloadFactory payloadFactory
- Factory for constructing Payloads
RawMessageDrivenInitiator
public RawMessageDrivenInitiator(String moduleName,
String name,
Flow flow,
IkasanExceptionHandler exceptionHandler,
PayloadFactory payloadFactory)
- Constructor
- Parameters:
moduleName - - name of the modulename - - name of this initiatorflow - - flow to invokeexceptionHandler - - handlerForExceptionspayloadFactory - - means for creating new Payloads
handleTextMessage
protected Event handleTextMessage(javax.jms.TextMessage message)
throws javax.jms.JMSException
- Description copied from class:
JmsMessageDrivenInitiatorImpl
- JMS Message specific type handling for
TextMessage
Subclasses that wish to support this Message type will override this
- Overrides:
handleTextMessage in class JmsMessageDrivenInitiatorImpl
- Parameters:
message - The message to handle
- Returns:
- Event
- Throws:
javax.jms.JMSException - Exception if there is a problem with JMS
getLogger
protected org.apache.log4j.Logger getLogger()
- Description copied from class:
AbstractInitiator
- Provides access to the implementation class specific logger instance
- Specified by:
getLogger in class AbstractInitiator
- Returns:
- Logger instance for the extending class
setRespectPriority
public void setRespectPriority(boolean respectPriority)
- Respect the priority of received messages by setting this on the Event
- Parameters:
respectPriority -
isRespectPriority
public boolean isRespectPriority()
- Accessor for respectPriority
- Returns:
- respectPriority
Copyright © 2007-2012 Ikasan. All Rights Reserved.