1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.module.jca; |
8 | |
|
9 | |
import org.mule.api.MuleException; |
10 | |
import org.mule.api.MuleMessage; |
11 | |
|
12 | |
import java.util.Map; |
13 | |
|
14 | |
import javax.resource.ResourceException; |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
public interface MuleConnection |
21 | |
{ |
22 | |
void dispatch(String url, Object payload, Map messageProperties) throws MuleException; |
23 | |
|
24 | |
MuleMessage request(String url, long timeout) throws MuleException; |
25 | |
|
26 | |
MuleManagedConnection getManagedConnection(); |
27 | |
|
28 | |
void close() throws ResourceException; |
29 | |
|
30 | |
void associateConnection(MuleManagedConnection newMc) throws ResourceException; |
31 | |
|
32 | |
MuleMessage send(String url, Object payload, Map messageProperties) throws MuleException; |
33 | |
} |