| java.lang.Object org.mule.module.jca.DefaultMuleConnection
DefaultMuleConnection | public class DefaultMuleConnection implements MuleConnection(Code) | | MuleConnection TODO
|
associateConnection | public void associateConnection(MuleManagedConnection newMc) throws ResourceException(Code) | | Associates connection handle with new managed connection.
Parameters: newMc - new managed connection |
checkIfValid | void checkIfValid() throws ResourceException(Code) | | Checks the validity of the physical connection to the EIS.
throws: javax.resource.ResourceException - in case of any error |
close | public void close() throws ResourceException(Code) | | Closes the connection.
|
dispatch | public void dispatch(String url, Object payload, Map messageProperties) throws MuleException(Code) | | Dispatches an event asynchronously to a endpointUri via a mule server. the Url
determines where to dispathc the event to, this can be in the form of
Parameters: url - the Mule url used to determine the destination and transport of themessage Parameters: payload - the object that is the payload of the event Parameters: messageProperties - any properties to be associated with the payload. Inthe case of Jms you could set the JMSReplyTo property in theseproperties. throws: org.mule.api.MuleException - |
getEvent | protected MuleEvent getEvent(MuleMessage message, String uri, boolean synchronous) throws MuleException(Code) | | Packages a mule event for the current request
Parameters: message - the event payload Parameters: uri - the destination endpointUri Parameters: synchronous - whether the event will be synchronously processed the MuleEvent throws: MuleException - in case of Mule error |
getManagedConnection | public MuleManagedConnection getManagedConnection()(Code) | | Retrieves a ManagedConnection.
a ManagedConnection instance representing the physical connection tothe EIS |
invalidate | void invalidate()(Code) | | Sets the physical connection to the EIS as invalid. The physical connection to
the EIS cannot be used any more.
|
request | public MuleMessage request(String url, long timeout) throws MuleException(Code) | | Will receive an event from an endpointUri determined by the url
Parameters: url - the Mule url used to determine the destination and transport of themessage Parameters: timeout - how long to block waiting to receive the event, if set to 0 thereceive will not wait at all and if set to -1 the receive will waitforever the message received or null if no message was received throws: org.mule.api.MuleException - |
send | public MuleMessage send(String url, Object payload, Map messageProperties) throws MuleException(Code) | | Sends an object (payload) synchronous to the given url and returns a
MuleMessage response back.
Parameters: url - the Mule url used to determine the destination and transport of themessage Parameters: payload - the object that is the payload of the event Parameters: messageProperties - any properties to be associated with the payload. Inthe case of Jms you could set the JMSReplyTo property in theseproperties. a umomessage response. throws: org.mule.api.MuleException - |
|
|