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