public class MessageSender extends SourceSinkTemplate
sendCommerceMessage
to send the message.MessageSource| 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_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
MessageSender() |
| 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.lang.String |
getNextMessageId()
Uses the id generator to get the next message id.
|
java.lang.String |
getPortName()
The name of the PortName to send messages out of.
|
boolean |
isAllowMessageSending()
This class cannot send messages if this is false.
|
void |
sendCommerceMessage(CommerceMessage pMessage)
Uses the
SourceSinkTemplate to send a commerce message
over portName |
void |
setAllowMessageSending(boolean pAllowMessageSending) |
void |
setMessageIdGenerator(IdGenerator pMessageIdGenerator) |
void |
setMessageIdSpaceName(java.lang.String pMessageIdSpaceName) |
void |
setMessageSourceContext(MessageSourceContext pMessageSourceContext)
Set the message source context for this source.
|
void |
setMessageSourceName(java.lang.String pMessageSourceName) |
void |
setPortName(java.lang.String pPortName) |
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.
|
getDelayOnSendRetry, getTransactionManager, receiveMessage, sendCommerceMessage, sendObjectMessage, setDelayOnSendRetry, setTransactionManageraddLogListener, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public static final java.lang.String DEFAULT_MESSAGE_SOURCE_NAME
public void setPortName(java.lang.String pPortName)
public java.lang.String getPortName()
public void setMessageSourceName(java.lang.String pMessageSourceName)
setMessageSourceName in class SourceSinkTemplatepublic java.lang.String getMessageSourceName()
getMessageSourceName in class SourceSinkTemplatepublic void setMessageSourceContext(MessageSourceContext pMessageSourceContext)
SourceSinkTemplatesetMessageSourceContext in interface MessageSourcesetMessageSourceContext in class SourceSinkTemplateMessageSourcepublic MessageSourceContext getMessageSourceContext()
getMessageSourceContext in class SourceSinkTemplatepublic 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 SourceSinkTemplatepublic boolean isAllowMessageSending()
SourceSinkTemplateisAllowMessageSending in class SourceSinkTemplatepublic void startMessageSource()
startMessageSource in interface MessageSourcestartMessageSource in class SourceSinkTemplatepublic void stopMessageSource()
stopMessageSource in interface MessageSourcestopMessageSource in class SourceSinkTemplatepublic void sendCommerceMessage(CommerceMessage pMessage) throws javax.jms.JMSException
SourceSinkTemplate to send a commerce message
over portNamepMessage - The message to be sentjavax.jms.JMSExceptionpublic java.lang.String getNextMessageId()