KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > ra > MuleConnection


1 /*
2  * $Id: MuleConnection.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.ra;
12
13 import java.util.Map JavaDoc;
14
15 import javax.resource.ResourceException JavaDoc;
16
17 import org.mule.umo.UMOException;
18 import org.mule.umo.UMOMessage;
19
20 /**
21  * <code>MuleConnection</code> defines the client connection methods for the JCA
22  * CCI contract
23  */

24 public interface MuleConnection
25 {
26     void dispatch(String JavaDoc url, Object JavaDoc payload, Map JavaDoc messageProperties) throws UMOException;
27
28     UMOMessage receive(String JavaDoc url, long timeout) throws UMOException;
29
30     MuleManagedConnection getManagedConnection();
31
32     void close() throws ResourceException JavaDoc;
33
34     void associateConnection(MuleManagedConnection newMc) throws ResourceException JavaDoc;
35
36     UMOMessage send(String JavaDoc url, Object JavaDoc payload, Map JavaDoc messageProperties) throws UMOException;
37 }
38
Popular Tags