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()  | 
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)
This notifies the MessageSource as to what its
 MessageSourceContext should be. 
 | 
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. 
 | 
receiveMessage, sendCommerceMessagebeforeSendMessage, getDefaultMessageSourceName, getDelayOnSendRetry, getLimboDeliveryDelay, getTransactionManager, sendObjectMessage, setDelayOnSendRetry, setLimboDeliveryDelay, 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, stopService, toStringvlogDebug, 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 atg.dms.forward.SourceSinkTemplatepublic java.lang.String getMessageSourceName()
getMessageSourceName in class atg.dms.forward.SourceSinkTemplatepublic void setMessageSourceContext(MessageSourceContext pMessageSourceContext)
MessageSourcesetMessageSourceContext in interface MessageSourcesetMessageSourceContext in class atg.dms.forward.SourceSinkTemplatepublic MessageSourceContext getMessageSourceContext()
getMessageSourceContext in class atg.dms.forward.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 atg.dms.forward.SourceSinkTemplatepublic boolean isAllowMessageSending()
isAllowMessageSending in class atg.dms.forward.SourceSinkTemplatepublic void startMessageSource()
startMessageSource in interface MessageSourcestartMessageSource in class atg.dms.forward.SourceSinkTemplatepublic void stopMessageSource()
stopMessageSource in interface MessageSourcestopMessageSource in class atg.dms.forward.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()