1 /**************************************************************************** 2 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the LGPL License v2.1 5 * which accompanies this distribution, and is available at 6 * http://www.gnu.org/licenses/lgpl.html 7 ****************************************************************************/ 8 /* 9 * MessageExchangeHandler.java 10 * 11 */ 12 13 package it.imolinfo.jbi4corba.jbi.component.runtime; 14 15 import javax.jbi.messaging.MessageExchange; 16 17 /** 18 * This interface is a Handler to perform message exchanges when the component 19 * receives the MessageExchange object from the delivery channel. 20 * Implemenation of this interface should implement the processing of 21 * the active, error, done status of the MessageExchange object according to 22 * the MEP for which the MessageExchange object is created. 23 * 24 * @author <a href="mailto:mpiraccini@imolinfo.it">Marco Piraccini</a> 25 */ 26 public interface MessageExchangeHandler extends Runnable { 27 /** 28 * sets the MessageExchange object to be processed 29 * @param msgExchange MessageExchange object. 30 */ 31 void setMessageExchange(MessageExchange msgExchange); 32 /** 33 * command interface method which will be invoked to process the MessageExchange 34 * object set using setMessageExchange. 35 */ 36 void processMessageExchange() throws Exception ; 37 38 }