Element Name Attribute name Required Default value Mnemonic Comments
GpListener root node (1) There must always be a root node even if
none of it's attributes are set
any
commandConnFactoryClass n ConnectionFactory GpListener.COMMAND_CONN_FACTORY
commandJndiType n jboss GpListener.COMMAND_JNDI_TYPE
commandJndiURL n localhost GpListener.COMMAND_JNDI_URL
commandIsTopic n false GpListener.COMMAND_IS_TOPIC
commandJndiName n null GpListener.COMMAND_JNDI_NAME
messageSelector n null GpListener.COMMAND_MSG_SELECTOR
parameterReloadSecs n 180 secs GpListener.PARM_RELOAD_SECS
endTime n forever GpListener.PARM_END_TIME yyyyMMdd hh:mm:ss
Email configuration child element (0,1) If present, must be an immediate child
of the root node
EmailProperties
org.jboss.soa.esb.mail.smtp.host n localhost SystemProperties.SMTP_HOST
org.jboss.soa.esb.mail.smtp.user n null SystemProperties.SMTP_USERNAME
org.jboss.soa.esb.mail.smtp.password n null SystemProperties.SMTP_PASSWORD
org.jboss.soa.esb.mail.smtp.port n 25 SystemProperties.SMTP_PORT
org.jboss.soa.esb.mail.smtp.from n null SystemProperties.SMTP_FROM
org.jboss.soa.esb.mail.smtp.auth n false SystemProperties.SMTP_AUTH
Child listener classes (1,*) GpListener will try to trigger a child thread
for each direct descendant node that contains
a 'listenerClass' attribute
any (except EmailProperties) Can be any of the listener types described below (DirectoryPoller, SqlTablePoller, JmsQueueListener)
DirectoryPoller configuration
listenerClass y GpListener.PARM_LISTENER_CLASS Must be org.jboss.soa.esb.listeners.DirectoryPoller
actionClass y GpListener.PARM_ACTION_CLASS Must specify a class that extends AbstractFileAction
maxThreads n 1 GpListener.PARM_MAX_THREADS
pollLatencySecs n 20 AbstractPoller.PARM_POLL_LTCY
inputDirURI y DirectoryPoller.FILE_INPUT_DIR
inputSuffix y DirectoryPoller.FILE_INPUT_SFX
workSuffix n .esbWork DirectoryPoller.FILE_WORK_SFX
errorDirURI n defaults to inputDir DirectoryPoller.FILE_ERROR_DIR
errorSuffix n .esbError DirectoryPoller.FILE_ERROR_SFX
postDirURI n defaults to inputDir DirectoryPoller.FILE_POST_DIR
postSuffix n .esbDone DirectoryPoller.FILE_POST_SFX
postDelete n false DirectoryPoller.FILE_POST_DEL If true, postDirURI and postSuffix are ignored
SqlTablePoller configuration
listenerClass y GpListener.PARM_LISTENER_CLASS Must be org.jboss.soa.esb.listeners.SqlTablePoller
actionClass y GpListener.PARM_ACTION_CLASS Must specify a class that extends AbstractSqlRowAction
maxThreads n 1 GpListener.PARM_MAX_THREADS
pollLatencySecs n 20 AbstractPoller.PARM_POLL_LTCY
driver-class y SimpleDataSource.DRIVER
connection-url y SimpleDataSource.URL
user-name n zero length string SimpleDataSource.USER
password n zero length string SimpleDataSource.PASSWORD
tableName y SqlTablePoller.TABLE_ATT.tableName
selectFields y SqlTablePoller.TABLE_ATT.selectFields
keyFields y SqlTablePoller.TABLE_ATT.keyFields All fields in this list must also be in the selectFields list
inProcessField y SqlTablePoller.TABLE_ATT.inProcessField Used to avoid concurrent access to same row
whereCondition n null SqlTablePoller.OPTIONAL_ATT.whereCondition
orderBy n null SqlTablePoller.OPTIONAL_ATT.orderBy
JmsQueueListener configuration
listenerClass y GpListener.PARM_LISTENER_CLASS Must be org.jboss.soa.esb.listeners.JmsQueueListener
actionClass y GpListener.PARM_ACTION_CLASS Must specify a class that extends AbstractAction
maxThreads n 1 GpListener.PARM_MAX_THREADS
queueConnFactoryClass n ConnectionFactory JmsQueueListener.LISTEN_QUEUE_CONN_FACT
listenJndiType n jboss JmsQueueListener.LISTEN_JNDI_TYPE
listenJndiURL n localhost JmsQueueListener.LISTEN_JNDI_URL
listenQueue y JmsQueueListener.LISTEN_QUEUE
listenMsgSelector n null JmsQueueListener.LISTEN_MSG_SELECTOR
If DirectoryPoller is configured with actionClass="org.soa.esb.actions.FileCopier" it must contain (1,n) child elements <CopyTo>
<CopyTo> element
copyToDirURI y
copyToSuffix y