1 /*
2 * The contents of this file are subject to the terms
3 * of the Common Development and Distribution License
4 * (the "License"). You may not use this file except
5 * in compliance with the License.
6 *
7 * You can obtain a copy of the license at
8 * https://open-esb.dev.java.net/public/CDDLv1.0.html.
9 * See the License for the specific language governing
10 * permissions and limitations under the License.
11 *
12 * When distributing Covered Code, include this CDDL
13 * HEADER in each file and include the License file at
14 * https://open-esb.dev.java.net/public/CDDLv1.0.html.
15 * If applicable add the following below this CDDL HEADER,
16 * with the fields enclosed by brackets "[]" replaced with
17 * your own identifying information: Portions Copyright
18 * [year] [name of copyright owner]
19 */
20
21 /*
22 * Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved.
23 */
24
25 /*
26 * MessageExchangeHandler.java
27 *
28 */
29
30 package it.imolinfo.jbi4ejb.jbi.component.runtime;
31
32 import javax.jbi.messaging.MessageExchange;
33
34 /**
35 * This interface is a Handler to perform message exchanges when the component
36 * receives the MessageExchange object from the delivery channel.
37 * Implemenation of this interface should implement the processing of
38 * the active, error, done status of the MessageExchange object according to
39 * the MEP for which the MessageExchange object is created.
40 *
41 * @author Sun Microsystems, Inc.
42 */
43 public interface MessageExchangeHandler extends Runnable {
44 /**
45 * sets the MessageExchange object to be processed
46 * @param msgExchange MessageExchange object.
47 */
48 void setMessageExchange(MessageExchange msgExchange);
49 /**
50 * command interface method which will be invoked to process the MessageExchange
51 * object set using setMessageExchange.
52 */
53 void processMessageExchange();
54
55 }