Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
OracleJmsMessageDispatcher |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: OracleJmsMessageDispatcher.java 7976 2007-08-21 14:26:13Z dirk.olmes $ | |
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 CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | ||
11 | package org.mule.providers.oracle.jms; | |
12 | ||
13 | import org.mule.providers.jms.JmsConnector; | |
14 | import org.mule.providers.jms.JmsMessageDispatcher; | |
15 | import org.mule.umo.UMOMessage; | |
16 | import org.mule.umo.endpoint.UMOImmutableEndpoint; | |
17 | ||
18 | public class OracleJmsMessageDispatcher extends JmsMessageDispatcher | |
19 | { | |
20 | ||
21 | public OracleJmsMessageDispatcher(UMOImmutableEndpoint endpoint) | |
22 | { | |
23 | 0 | super(endpoint); |
24 | 0 | } |
25 | ||
26 | /** | |
27 | * Make a specific request to the underlying transport Save a copy of the | |
28 | * endpoint's properties within the OracleJmsSupport object. | |
29 | * | |
30 | * @see OracleJmsSupport#endpointProperties | |
31 | * @param endpoint the endpoint to use when connecting to the resource | |
32 | * @param timeout the maximum time the operation should block before returning. | |
33 | * The call should return immediately if there is data available. If | |
34 | * no data becomes available before the timeout elapses, null will be | |
35 | * returned | |
36 | * @return the result of the request wrapped in a UMOMessage object. Null will be | |
37 | * returned if no data was avaialable | |
38 | * @throws Exception if the call to the underlying protocal cuases an exception | |
39 | */ | |
40 | protected UMOMessage doReceive(long timeout) throws Exception | |
41 | { | |
42 | 0 | ((OracleJmsSupport)((JmsConnector)getConnector()).getJmsSupport()).setEndpointProperties(endpoint.getEndpointURI() |
43 | .getParams()); | |
44 | 0 | return super.doReceive(timeout); |
45 | } | |
46 | } |