public class MessageForwardFilter extends SourceSinkTemplate
MessageSource
,
MessageSink
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
DEFAULT_MESSAGE_SOURCE_NAME |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
MessageForwardFilter() |
Modifier and Type | Method and Description |
---|---|
IdGenerator |
getMessageIdGenerator()
The service that generates Ids for all messages.
|
java.lang.String |
getMessageIdSpaceName()
The name of the idspace to get our message ids from
|
MessageSourceContext |
getMessageSourceContext()
Return the message source context for this source.
|
java.lang.String |
getMessageSourceName()
The string used as the source of messages.
|
java.util.Properties |
getMessageTypes()
A mapping of message types to port names.
|
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getMessageTypesToPorts() |
java.lang.String |
getNextMessageId()
Uses the id generator to get the next message id.
|
protected CommerceMessage |
getUpdatedCommerceMessage(javax.jms.ObjectMessage pObjectMessage) |
boolean |
isAllowMessageSending() |
void |
receiveMessage(java.lang.String pPortName,
javax.jms.Message pMessage)
Takes a message, and if it is configured to forward it, sends it on to
other message sinks.
|
void |
setAllowMessageSending(boolean pAllowMessageSending) |
void |
setMessageIdGenerator(IdGenerator pMessageIdGenerator) |
void |
setMessageIdSpaceName(java.lang.String pMessageIdSpaceName) |
void |
setMessageSourceContext(MessageSourceContext pMessageSourceContext)
This notifies the MessageSource as to what its
MessageSourceContext should be.
|
void |
setMessageSourceName(java.lang.String pMessageSourceName) |
void |
setMessageTypes(java.util.Properties pMessageTypes) |
void |
startMessageSource()
This is called to tell the MessageSource that it may begin sending messages.
|
void |
stopMessageSource()
This is called to tell the MessageSource that it should stop
sending messages.
|
sendCommerceMessage
beforeSendMessage, getDefaultMessageSourceName, getDelayOnSendRetry, getLimboDeliveryDelay, getTransactionManager, sendObjectMessage, setDelayOnSendRetry, setLimboDeliveryDelay, setTransactionManager
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String DEFAULT_MESSAGE_SOURCE_NAME
public void setMessageTypes(java.util.Properties pMessageTypes)
public java.util.Properties getMessageTypes()
public java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getMessageTypesToPorts()
public void setMessageSourceName(java.lang.String pMessageSourceName)
setMessageSourceName
in class atg.dms.forward.SourceSinkTemplate
public java.lang.String getMessageSourceName()
getMessageSourceName
in class atg.dms.forward.SourceSinkTemplate
public void setMessageSourceContext(MessageSourceContext pMessageSourceContext)
MessageSource
setMessageSourceContext
in interface MessageSource
setMessageSourceContext
in class atg.dms.forward.SourceSinkTemplate
public MessageSourceContext getMessageSourceContext()
getMessageSourceContext
in class atg.dms.forward.SourceSinkTemplate
public void setMessageIdGenerator(IdGenerator pMessageIdGenerator)
public IdGenerator getMessageIdGenerator()
public void setMessageIdSpaceName(java.lang.String pMessageIdSpaceName)
public java.lang.String getMessageIdSpaceName()
public void setAllowMessageSending(boolean pAllowMessageSending)
setAllowMessageSending
in class atg.dms.forward.SourceSinkTemplate
public boolean isAllowMessageSending()
isAllowMessageSending
in class atg.dms.forward.SourceSinkTemplate
public void startMessageSource()
startMessageSource
in interface MessageSource
startMessageSource
in class atg.dms.forward.SourceSinkTemplate
public void stopMessageSource()
stopMessageSource
in interface MessageSource
stopMessageSource
in class atg.dms.forward.SourceSinkTemplate
public void receiveMessage(java.lang.String pPortName, javax.jms.Message pMessage) throws javax.jms.JMSException
receiveMessage
in interface MessageSink
receiveMessage
in class SourceSinkTemplate
javax.jms.JMSException
protected CommerceMessage getUpdatedCommerceMessage(javax.jms.ObjectMessage pObjectMessage) throws CommerceException, javax.jms.JMSException
CommerceException
javax.jms.JMSException
public java.lang.String getNextMessageId()