/** * Depending on the session state this methods either Passes an event synchronously to the next * available Mule UMO in the pool or via the endpoint configured for the event * * @param message the event message payload to send * @param endpoint The endpoint to disptch the event through. * @return the return Message from the call or null if there was no result * @throws org.mule.umo.UMOException if the event fails to be processed by the component or the * transport for the endpoint */ public UMOMessage sendEvent(UMOMessage message, UMOEndpoint endpoint) throws UMOException { // If synchronous receive has not been explicitly set, default it to // true setRemoteSync(message, endpoint); UMOMessage result = session.sendEvent(message, endpoint); return result; }
/** * Depending on the session state this methods either Passes an event synchronously to the next * available Mule UMO in the pool or via the endpointUri configured for the event * * @param message the event message payload to send * @param endpointUri The endpointUri to disptch the event through * @return the return Message from the call or null if there was no result * @throws org.mule.umo.UMOException if the event fails to be processed by the component or the * transport for the endpointUri */ public UMOMessage sendEvent(UMOMessage message, UMOEndpointURI endpointUri) throws UMOException { UMOEndpoint endpoint = MuleEndpoint.getOrCreateEndpointForUri(endpointUri, UMOEndpoint.ENDPOINT_TYPE_SENDER); // If synchronous receive has not been explicitly set, default it to // true setRemoteSync(message, endpoint); return session.sendEvent(message, endpoint); }
/** * Depending on the session state this methods either Passes an event synchronously to the next * available Mule UMO in the pool or via the endpoint configured for the event * * @param message the event message payload to send * @param endpointName The endpoint name to disptch the event through. This will be looked up * first on the component configuration and then on the mule manager configuration * @return the return Message from the call or null if there was no result * @throws org.mule.umo.UMOException if the event fails to be processed by the component or the * transport for the endpoint */ public UMOMessage sendEvent(UMOMessage message, String endpointName) throws UMOException { UMOEndpoint endpoint = MuleManager.getInstance().lookupEndpoint(endpointName); setRemoteSync(message, endpoint); return session.sendEvent(message, endpoint); }
/** * Depending on the session state this methods either Passes an event synchronously to the next * available Mule UMO in the pool or via the endpoint configured for the event * * @param message the message payload to send * @return the return Message from the call or null if there was no result * @throws org.mule.umo.UMOException if the event fails to be processed by the component or the * transport for the endpoint */ public UMOMessage sendEvent(UMOMessage message) throws UMOException { // If synchronous receive has not been explicitly set, default it to // true setRemoteSync(message, event.getEndpoint()); return session.sendEvent(message); }