it.imolinfo.jbi4corba.jbi.component
Class Jbi4CorbaMessageExchangeHandler

java.lang.Object
  extended by it.imolinfo.jbi4corba.jbi.component.runtime.AbstractMessageExchangeHandler
      extended by it.imolinfo.jbi4corba.jbi.component.Jbi4CorbaMessageExchangeHandler
All Implemented Interfaces:
MessageExchangeHandler, Runnable

public class Jbi4CorbaMessageExchangeHandler
extends AbstractMessageExchangeHandler

Message Exchange handler. Some of this code is taken from the InOutProviderMessageExchangeHandler class.

Author:
Marco Piraccini

Field Summary
static long SEND_SYNC_TIMEOUT
          The Constant SEND_SYNC_TIMEOUT.
 
Fields inherited from class it.imolinfo.jbi4corba.jbi.component.runtime.AbstractMessageExchangeHandler
IN_MESSAGE, OUT_MESSAGE
 
Constructor Summary
Jbi4CorbaMessageExchangeHandler(Jbi4CorbaSUManager suManager)
          Instantiates a new jbi4 ejb message exchange handler.
 
Method Summary
protected  void processDone()
          Process Done.
protected  void processError(Exception ex)
          Process an Error.
protected  void processFault(javax.jbi.messaging.Fault fault)
          Process a Fault.
protected  void processMessage()
          Process the message.
protected  void validateMessageExchange()
          Validates the MessageExchange.
 
Methods inherited from class it.imolinfo.jbi4corba.jbi.component.runtime.AbstractMessageExchangeHandler
getDeliveryChannel, getMessageExchange, processMessageExchange, run, send, sendDone, sendError, sendFault, sendFault, sendFault, setMessageExchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEND_SYNC_TIMEOUT

public static final long SEND_SYNC_TIMEOUT
The Constant SEND_SYNC_TIMEOUT.

See Also:
Constant Field Values
Constructor Detail

Jbi4CorbaMessageExchangeHandler

public Jbi4CorbaMessageExchangeHandler(Jbi4CorbaSUManager suManager)
Instantiates a new jbi4 ejb message exchange handler.

Parameters:
suManager - The service unit manager
Method Detail

processMessage

protected final void processMessage()
Process the message.

Specified by:
processMessage in class AbstractMessageExchangeHandler

validateMessageExchange

protected void validateMessageExchange()
                                throws javax.jbi.messaging.MessagingException
Validates the MessageExchange.

Specified by:
validateMessageExchange in class AbstractMessageExchangeHandler
Throws:
javax.jbi.messaging.MessagingException - If something go wrong.

processFault

protected void processFault(javax.jbi.messaging.Fault fault)
Process a Fault.

Specified by:
processFault in class AbstractMessageExchangeHandler
Parameters:
fault - The fault

processDone

protected void processDone()
Process Done.

Specified by:
processDone in class AbstractMessageExchangeHandler

processError

protected void processError(Exception ex)
Process an Error.

Specified by:
processError in class AbstractMessageExchangeHandler
Parameters:
ex - The eception to process


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.