org.mule.providers.rmi
Class RmiMessageReceiver

java.lang.Object
  extended byorg.mule.providers.AbstractMessageReceiver
      extended byorg.mule.providers.PollingMessageReceiver
          extended byorg.mule.providers.rmi.RmiMessageReceiver
All Implemented Interfaces:
Disposable, Lifecycle, Startable, Stoppable, UMOConnectable, UMOMessageReceiver
Direct Known Subclasses:
EjbMessageReceiver

public class RmiMessageReceiver
extends PollingMessageReceiver

Will repeatedly call a method on a Remote object. If the method takes parameters A List of objects can be specified on the endpoint called methodArgumentsList, If this property is ommitted it is assumed that the method takes no parameters


Field Summary
protected  RmiConnector connector
           
protected  Method invokeMethod
           
protected  Object[] methodArguments
           
protected  Remote remoteObject
           
 
Fields inherited from class org.mule.providers.PollingMessageReceiver
DEFAULT_POLL_FREQUENCY, frequency, STARTUP_DELAY
 
Fields inherited from class org.mule.providers.AbstractMessageReceiver
component, connected, connectionStrategy, disposing, endpoint, logger, stopped
 
Constructor Summary
RmiMessageReceiver(UMOConnector connector, UMOComponent component, UMOEndpoint endpoint, Long frequency)
           
 
Method Summary
 void doConnect()
           
 void doDisconnect()
           
protected  Object[] getMethodArguments()
          Returns the method arguments to use when invoking the method on the Remote object.
 void poll()
           
 
Methods inherited from class org.mule.providers.PollingMessageReceiver
doStart, getFrequency, release, run, setFrequency
 
Methods inherited from class org.mule.providers.AbstractMessageReceiver
applyResponseTransformer, connect, disconnect, dispose, doDispose, doStop, getComponent, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getWorkManager, handleException, handleUnacceptedFilter, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setComponent, setConnector, setEndpoint, setExceptionDetails, setListener, setWorkManager, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connector

protected RmiConnector connector

remoteObject

protected Remote remoteObject

invokeMethod

protected Method invokeMethod

methodArguments

protected Object[] methodArguments
Constructor Detail

RmiMessageReceiver

public RmiMessageReceiver(UMOConnector connector,
                          UMOComponent component,
                          UMOEndpoint endpoint,
                          Long frequency)
                   throws InitialisationException
Method Detail

doConnect

public void doConnect()
               throws Exception
Specified by:
doConnect in class AbstractMessageReceiver
Throws:
Exception

doDisconnect

public void doDisconnect()
Specified by:
doDisconnect in class AbstractMessageReceiver

poll

public void poll()
Specified by:
poll in class PollingMessageReceiver

getMethodArguments

protected Object[] getMethodArguments()
Returns the method arguments to use when invoking the method on the Remote object. This method can be overloaded to enable dynamic method arguments

Returns:


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.