org.mule.module.jca
Class JcaService
java.lang.Object
org.mule.service.AbstractService
org.mule.module.jca.JcaService
- All Implemented Interfaces:
- Serializable, AnnotatedObject, FlowConstruct, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, NameableObject, NamedObject, MessageProcessor, Service
public class JcaService
- extends AbstractService
JcaService
Is the type of service used in Mule when embedded inside
an app server using JCA. In the future we might want to use one of the existing
models.
- See Also:
- Serialized Form
Fields inherited from class org.mule.service.AbstractService |
asyncReplyMessageSource, component, exceptionListener, INITIAL_STATE_PAUSED, INITIAL_STATE_STARTED, INITIAL_STATE_STOPPED, initialState, lifecycleManager, logger, messageInfoMapping, messageProcessorChain, messageSource, model, muleContext, name, outboundRouter, stats |
Method Summary |
protected void |
addMessageProcessors(MessageProcessorChainBuilder builder)
|
protected void |
doPause()
Custom components can execute code necessary to put the service in a paused state here. |
protected void |
doResume()
Custom components can execute code necessary to resume a service once it has
been paused If a developer overloads this method the doPause() method MUST
also be overloaded to avoid inconsistent state in the service |
boolean |
isPaused()
Determines if the service is in a paused state |
MuleEvent |
sendEvent(MuleEvent event)
This is the synchronous call method and not supported by components managed in
a JCA container |
protected void |
waitIfPaused(MuleEvent event)
|
Methods inherited from class org.mule.service.AbstractService |
buildServiceMessageProcessorChain, createAsyncReplyProcessor, createStatistics, dispatchEvent, dispose, disposeIfDisposable, doDispose, doForceStop, doInitialise, doStart, doStop, forceStop, getAnnotation, getAnnotations, getAsyncReplyMessageSource, getAsyncReplyTimeout, getComponent, getExceptionListener, getInitialState, getLifecycleManager, getLifecycleState, getMessageInfoMapping, getMessageProcessorChain, getMessageSource, getModel, getMuleContext, getName, getOutboundMessageProcessor, getServiceStartedAssertingMessageProcessor, getStatistics, initialise, initialiseIfInitialisable, injectFlowConstructMuleContext, isStarted, isStopped, isStopping, pause, pauseIfPausable, process, resume, resumeIfResumable, setAnnotations, setAsyncReplyMessageSource, setComponent, setExceptionListener, setInitialState, setMessageInfoMapping, setMessageProcessor, setMessageSource, setModel, setName, setOutboundMessageProcessor, start, startIfStartable, stop, stopIfStoppable, toString |
JcaService
public JcaService(MuleContext muleContext)
sendEvent
public MuleEvent sendEvent(MuleEvent event)
throws MuleException
- This is the synchronous call method and not supported by components managed in
a JCA container
- Specified by:
sendEvent
in interface Service
- Overrides:
sendEvent
in class AbstractService
- Parameters:
event
-
- Returns:
- a MuleMessage containing the resulting message and properties
- Throws:
MuleException
isPaused
public boolean isPaused()
- Description copied from class:
AbstractService
- Determines if the service is in a paused state
- Specified by:
isPaused
in interface Service
- Overrides:
isPaused
in class AbstractService
- Returns:
- True if the service is in a paused state, false otherwise
waitIfPaused
protected void waitIfPaused(MuleEvent event)
throws InterruptedException
- Throws:
InterruptedException
doPause
protected void doPause()
- Description copied from class:
AbstractService
- Custom components can execute code necessary to put the service in a paused state here. If a developer
overloads this method the doResume() method MUST also be overloaded to avoid inconsistent state in the
service
- Overrides:
doPause
in class AbstractService
doResume
protected void doResume()
- Description copied from class:
AbstractService
- Custom components can execute code necessary to resume a service once it has
been paused If a developer overloads this method the doPause() method MUST
also be overloaded to avoid inconsistent state in the service
- Overrides:
doResume
in class AbstractService
addMessageProcessors
protected void addMessageProcessors(MessageProcessorChainBuilder builder)
- Specified by:
addMessageProcessors
in class AbstractService
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.