it.imolinfo.jbi4ejb.jbi.component.runtime
Class MessageExchangeReceiver

java.lang.Object
  extended by it.imolinfo.jbi4ejb.jbi.component.runtime.MessageExchangeReceiver

public class MessageExchangeReceiver
extends java.lang.Object

This main purpose of this class is to manage receiving the MessageExchange object from the DeliveryChannel and process them by delegating the processing of the MessageExchange object to MessageExchangeHandlers configured for the component. It also provides the controller methods to start and stop processing the MessageExchange objects which will be used when the component lifecycle is controlled. This class creates a single thread to receive the MessageExchange objects from the delivery channel and then finds the appropriate message exchange handler to process the message exchange. Each message exchange handler will be executed in a separate thread from a pool of handler threads.

Author:
Sun Microsystems, Inc.

Constructor Summary
MessageExchangeReceiver()
          no default constructor for extended classes
 
Method Summary
 void initReceiver()
           
 void shutdownReceiver()
           
 void startProcessing()
           
 void stopProcessing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageExchangeReceiver

public MessageExchangeReceiver()
                        throws java.lang.Exception
no default constructor for extended classes

Throws:
java.lang.Exception
Method Detail

initReceiver

public final void initReceiver()
                        throws java.lang.Exception
Throws:
java.lang.Exception

shutdownReceiver

public final void shutdownReceiver()
                            throws java.lang.Exception
Throws:
java.lang.Exception

startProcessing

public final void startProcessing()
                           throws java.lang.Exception
Throws:
java.lang.Exception

stopProcessing

public final void stopProcessing()
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.