org.ikasan.framework.initiator.messagedriven.jca
Class RawMessageDrivenInitiator

java.lang.Object
  extended by org.ikasan.framework.initiator.AbstractInitiator
      extended by org.ikasan.framework.initiator.messagedriven.jca.JmsMessageDrivenInitiatorImpl
          extended by org.ikasan.framework.initiator.messagedriven.jca.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

Field Summary
protected  PayloadFactory payloadFactory
          Factory for constructing Payloads
 
Fields inherited from class org.ikasan.framework.initiator.messagedriven.jca.JmsMessageDrivenInitiatorImpl
anesthetist, halt, messageListenerContainer
 
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
 
Constructor Summary
RawMessageDrivenInitiator(String moduleName, String name, Flow flow, IkasanExceptionHandler exceptionHandler, PayloadFactory payloadFactory)
          Constructor
 
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.jca.JmsMessageDrivenInitiatorImpl
anesthetistOperating, cancelRetryCycle, completeRetryCycle, continueRetryCycle, getMessageListenerContainer, getType, handleBytesMessage, handleMapMessage, handleObjectMessage, handleStreamMessage, isRecovering, isRunning, notifyListenerSetupFailure, onMessage, setListenerSetupFailureRetryDelay, setMaxListenerSetupFailureRetries, setMessageListenerContainer, startInitiator, startRetryCycle, stopInError, 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, supportsExclusions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ikasan.framework.initiator.Initiator
getExceptionHandler, getFlow, getHandledEventCount, getLastEventTime, getName, getRetryCount, getState, isError, start, stop
 
Methods inherited from interface org.ikasan.framework.monitor.MonitorSubject
addListener, removeListener
 

Field Detail

payloadFactory

protected PayloadFactory payloadFactory
Factory for constructing Payloads

Constructor Detail

RawMessageDrivenInitiator

public RawMessageDrivenInitiator(String moduleName,
                                 String name,
                                 Flow flow,
                                 IkasanExceptionHandler exceptionHandler,
                                 PayloadFactory payloadFactory)
Constructor

Parameters:
moduleName - - name of the module
name - - name of this initiator
flow - - flow to invoke
exceptionHandler - - handlerForExceptions
payloadFactory - - means for creating new Payloads
Method Detail

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.