|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 |
doStop()
Handle the stop of the managed instance. |
protected void |
doThreadedDestroy()
Handle the threaded destroy of the managed instance. |
protected org.jboss.internal.soa.esb.couriers.PickUpOnlyCourier |
getCourier()
|
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, 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
classpath
protected void doInitialise()
throws ManagedLifecycleException
doInitialise in class AbstractManagedLifecycleManagedLifecycleException - for errors while initialisation.
protected void doStart()
throws ManagedLifecycleException
doStart in class AbstractThreadedManagedLifecycleManagedLifecycleException - for errors while starting.protected void doRun()
doRun in class AbstractThreadedManagedLifecycle
protected void doStop()
throws ManagedLifecycleException
doStop in class AbstractThreadedManagedLifecycleManagedLifecycleException - for errors while stopping.public void waitForEventAndProcess(long maxWaitMillis)
maxWaitMillis -
protected void doThreadedDestroy()
throws ManagedLifecycleException
doThreadedDestroy in class AbstractThreadedManagedLifecycleManagedLifecycleException - for errors while destroying.
protected org.jboss.internal.soa.esb.couriers.PickUpOnlyCourier getCourier()
throws MalformedEPRException,
CourierException
MalformedEPRException
CourierException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||