1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.transport.jms.websphere; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.api.config.MuleProperties; |
15 | |
import org.mule.transport.jms.JmsConnector; |
16 | |
|
17 | |
import java.util.Collections; |
18 | |
import java.util.Map; |
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
public class WebsphereJmsConnector extends JmsConnector |
24 | |
{ |
25 | |
|
26 | 0 | public static final String DEFAULT_XA_RECEIVER_CLASS = WebsphereTransactedJmsMessageReceiver.class.getName(); |
27 | |
|
28 | |
|
29 | |
public WebsphereJmsConnector(MuleContext context) |
30 | |
{ |
31 | 0 | super(context); |
32 | 0 | if (serviceOverrides == null || serviceOverrides.isEmpty()) |
33 | |
{ |
34 | 0 | Map overrides = Collections.singletonMap(MuleProperties.CONNECTOR_XA_TRANSACTED_MESSAGE_RECEIVER_CLASS, |
35 | |
DEFAULT_XA_RECEIVER_CLASS); |
36 | 0 | setServiceOverrides(overrides); |
37 | |
} |
38 | 0 | } |
39 | |
} |