org.mule.ra
Class JcaComponent

java.lang.Object
  extended byorg.mule.ra.JcaComponent
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, java.io.Serializable, Startable, Stoppable, UMOComponent

public class JcaComponent
extends java.lang.Object
implements UMOComponent

JcaComponent TODO

Version:
$Revision: 1.2 $
Author:
Ross Mason
See Also:
Serialized Form

Field Summary
protected static Log logger
          logger used by this class
 
Constructor Summary
JcaComponent(MuleDescriptor descriptor)
           
 
Method Summary
 void dispatchEvent(UMOEvent event)
          Makes an asynhronous event call to the component.
 void dispose()
          A lifecycle method where implementor should fee up any resources If an exception is thrown it should just be logged and processing should continue.
protected  java.lang.Object getDelegateComponent()
           
 UMODescriptor getDescriptor()
           
 void initialise()
          Method used to perform any initialisation work.
 void pause()
          Pauses event processing for theComponent.
 void resume()
          Resumes the Component that has been paused.
 UMOMessage sendEvent(UMOEvent event)
          This is the synchronous call method and not supported by components managed in a JCA container
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient Log logger
logger used by this class

Constructor Detail

JcaComponent

public JcaComponent(MuleDescriptor descriptor)
Method Detail

getDescriptor

public UMODescriptor getDescriptor()
Specified by:
getDescriptor in interface UMOComponent
Returns:
the UMODescriptor associated with the component
See Also:
UMODescriptor

dispatchEvent

public void dispatchEvent(UMOEvent event)
                   throws UMOException
Description copied from interface: UMOComponent
Makes an asynhronous event call to the component.

Specified by:
dispatchEvent in interface UMOComponent
Parameters:
event - the event to consume
Throws:
UMOException - if the event fails to be processed

sendEvent

public UMOMessage sendEvent(UMOEvent event)
                     throws UMOException
This is the synchronous call method and not supported by components managed in a JCA container

Specified by:
sendEvent in interface UMOComponent
Parameters:
event -
Returns:
Throws:
UMOException

pause

public void pause()
           throws UMOException
Description copied from interface: UMOComponent
Pauses event processing for theComponent. Unlike stop(), a paused component will still consume messages from the underlying transport, but those messages will be queued until the component is resumed. In order to persist these queued messages you can set the 'recoverableMode' property on the Muleconfiguration to true. this causes all internal queues to store their state.

Specified by:
pause in interface UMOComponent
Throws:
UMOException - if the component failed to pause.
See Also:
MuleConfiguration

resume

public void resume()
            throws UMOException
Description copied from interface: UMOComponent
Resumes the Component that has been paused. If the component is not paused nothing is executed.

Specified by:
resume in interface UMOComponent
Throws:
UMOException - if the component failed to resume

start

public void start()
           throws UMOException
Specified by:
start in interface Startable
Throws:
UMOException

stop

public void stop()
          throws UMOException
Specified by:
stop in interface Stoppable
Throws:
UMOException

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should fee up any resources If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions

Specified by:
dispose in interface Disposable

initialise

public void initialise()
                throws InitialisationException,
                       RecoverableException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown, causing the Mule instance to shutdown. If the error is recoverable, say by retrying to connect, a RecoverableException should be thrown. There is no guarantee that by throwing a Recoverable exception that the Mule instance will not shut down.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

getDelegateComponent

protected java.lang.Object getDelegateComponent()
                                         throws InitialisationException
Throws:
InitialisationException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.