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