|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle org.jboss.soa.esb.listeners.message.MessageAwareListener
public class MessageAwareListener
Esb Message aware transport independent listener.
Relies on the CourierFactory to obtain an appropriate Courier for the EPR this listener will be listening on
Field Summary |
---|
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
PARAM_TERMINATION_PERIOD |
Constructor Summary | |
---|---|
MessageAwareListener(ConfigTree config)
public constructor |
Method Summary | |
---|---|
protected void |
checkMyParms()
Check for mandatory and optional attributes in parameter tree |
protected void |
doInitialise()
Handle the initialisation of the managed instance. |
protected void |
doRun()
Execute on the thread. |
protected void |
doStart()
Handle the start of the managed instance. |
protected void |
doThreadedDestroy()
Handle the threaded destroy of the managed instance. |
void |
waitForEventAndProcess(long maxWaitMillis)
We have JMS transactional delivery/work semantics: before pulling a unit of work we start a transaction. |
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle |
---|
addManagedLifecycleThreadEventListener, doDestroy, doStop, isRunning, isStopped, isStopping, removeManagedLifecycleThreadEventListener, run, setRunning, waitForRunningStateChange, waitUntilStopped, waitUntilStopped, waitUntilStopping |
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
addManagedLifecycleEventListener, changeState, destroy, getConfig, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitUntilDestroyed, waitUntilDestroyed, waitUntilNotState, waitUntilState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageAwareListener(ConfigTree config) throws ConfigurationException
config
- ConfigTree - Containing 'static' configuration for this
instance
ConfigurationException
Method Detail |
---|
protected void checkMyParms() throws ConfigurationException
ConfigurationException
- -
if mandatory atts are not right or actionClass not in
classpathprotected void doInitialise() throws ManagedLifecycleException
doInitialise
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while initialisation.protected void doStart() throws ManagedLifecycleException
doStart
in class AbstractThreadedManagedLifecycle
ManagedLifecycleException
- for errors while starting.protected void doRun()
doRun
in class AbstractThreadedManagedLifecycle
public void waitForEventAndProcess(long maxWaitMillis)
maxWaitMillis
- protected void doThreadedDestroy() throws ManagedLifecycleException
doThreadedDestroy
in class AbstractThreadedManagedLifecycle
ManagedLifecycleException
- for errors while destroying.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |