atg.markers
Class MarkerMessageSource

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.markers.MarkerMessageSource
All Implemented Interfaces:
MessageSource, MarkerConstants, NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class MarkerMessageSource
extends GenericService
implements MessageSource, MarkerConstants

A patch bay message source responsible for sending Marker events.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.markers.MarkerConstants
ALLOW_DUPLICATES, ANY_VALUE, DEFAULT_MARKER_ID_PROPERTY_NAME, DEFAULT_MARKER_ITEM_TYPE, DEFAULT_MARKER_PROPERTY_NAME, DEFAULT_MARKER_SORT_PROPERTY_NAME, MARKER_CREATIONDATE_PROPERTY_NAME, MARKER_DATA_PROPERTY_NAME, MARKER_DUPLICATIONMODE_PROPERTY_NAME, MARKER_KEY_PROPERTY_NAME, MARKER_OWNER_PROPERTY_NAME, MARKER_RESOURCE_NAME, MARKER_VALUE_PROPERTY_NAME, NO_DUPLICATES, PARAM_DATA, PARAM_DUPMODE, PARAM_EXTENDED_PROPERTIES, PARAM_ITEM, PARAM_ITEM_ID, PARAM_KEY, PARAM_MARKED_ITEM_TYPE, PARAM_MARKER_ITEM_TYPE, PARAM_MARKER_MANAGER, PARAM_MARKER_PROPERTY_NAME, PARAM_VALUE, REPLACE_DUPLICATES, sResourceBundle
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
MarkerMessageSource()
           
 
Method Summary
 MessageSourceContext getMessageSourceContext()
           
 java.lang.String getPortName()
           
 javax.transaction.TransactionManager getTransactionManager()
           
 void sendMarkerEventMessage(MarkerEventMessage pMessage, java.lang.String pJMSType)
          Sends a marker event message.
protected  void sendMarkerMessage(java.io.Serializable pMessageBean, java.lang.String pPortName, java.lang.String pJmsType)
          Sends the message, using the port name and jms type provided
 void setMessageSourceContext(MessageSourceContext pContext)
          property messageSourceContext
 void setPortName(java.lang.String pPortName)
           
 void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
          property transactionManager
 void startMessageSource()
          Instructs this message source to begin distributing messages.
 void stopMessageSource()
          Instructs this message source to begin distributing messages.
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, 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, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

MarkerMessageSource

public MarkerMessageSource()
Method Detail

setMessageSourceContext

public void setMessageSourceContext(MessageSourceContext pContext)
property messageSourceContext

Specified by:
setMessageSourceContext in interface MessageSource

getMessageSourceContext

public MessageSourceContext getMessageSourceContext()

setPortName

public void setPortName(java.lang.String pPortName)

getPortName

public java.lang.String getPortName()

setTransactionManager

public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
property transactionManager

The Transaction Manager instance used when sending messages.


getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()

startMessageSource

public void startMessageSource()
Instructs this message source to begin distributing messages.

Specified by:
startMessageSource in interface MessageSource

stopMessageSource

public void stopMessageSource()
Instructs this message source to begin distributing messages.

Specified by:
stopMessageSource in interface MessageSource

sendMarkerEventMessage

public void sendMarkerEventMessage(MarkerEventMessage pMessage,
                                   java.lang.String pJMSType)
Sends a marker event message.

Parameters:
pMessage - the MarkerEventMessage object to be sent.
pJMSType - the jms type to use when sending the message.

sendMarkerMessage

protected void sendMarkerMessage(java.io.Serializable pMessageBean,
                                 java.lang.String pPortName,
                                 java.lang.String pJmsType)
Sends the message, using the port name and jms type provided