org.mule.providers.jbi
Class JbiMessageReceiver

java.lang.Object
  extended byorg.mule.providers.AbstractMessageReceiver
      extended byorg.mule.providers.jbi.JbiMessageReceiver
All Implemented Interfaces:
Disposable, Lifecycle, Runnable, Startable, Stoppable, UMOConnectable, UMOMessageReceiver, Work

public class JbiMessageReceiver
extends AbstractMessageReceiver
implements Work

This is a JBI component that can receive events over Mule transports. It is an independent JBI component implementation that can be used in any JBI container, including but not limited to Mule JBI.


Field Summary
protected  JbiConnector connector
           
protected  javax.jbi.component.ComponentContext context
           
protected  String name
           
 
Fields inherited from class org.mule.providers.AbstractMessageReceiver
component, connected, connecting, connectionStrategy, disposing, endpoint, logger, receiverKey, stopped
 
Constructor Summary
JbiMessageReceiver(UMOConnector connector, UMOComponent component, UMOEndpoint endpoint)
           
 
Method Summary
 void doConnect()
           
 void doDisconnect()
           
protected  void doDispose()
           
protected  void done(javax.jbi.messaging.MessageExchange me)
           
 void doStart()
           
 void doStop()
           
protected  void error(javax.jbi.messaging.MessageExchange me, Exception e)
           
 void release()
           
 void run()
           
 
Methods inherited from class org.mule.providers.AbstractMessageReceiver
applyResponseTransformer, connect, disconnect, dispose, getComponent, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getReceiverKey, getWorkManager, handleException, handleUnacceptedFilter, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setComponent, setConnector, setEndpoint, setExceptionDetails, setListener, setReceiverKey, setWorkManager, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

context

protected javax.jbi.component.ComponentContext context

connector

protected JbiConnector connector

name

protected String name
Constructor Detail

JbiMessageReceiver

public JbiMessageReceiver(UMOConnector connector,
                          UMOComponent component,
                          UMOEndpoint endpoint)
                   throws InitialisationException
Method Detail

doDispose

protected void doDispose()
Specified by:
doDispose in class AbstractMessageReceiver

doConnect

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

doDisconnect

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

doStart

public void doStart()
             throws UMOException
Specified by:
doStart in class AbstractMessageReceiver
Throws:
UMOException

doStop

public void doStop()
            throws UMOException
Specified by:
doStop in class AbstractMessageReceiver
Throws:
UMOException

release

public void release()
Specified by:
release in interface Work

run

public void run()
Specified by:
run in interface Runnable

error

protected void error(javax.jbi.messaging.MessageExchange me,
                     Exception e)
              throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

done

protected void done(javax.jbi.messaging.MessageExchange me)
             throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.