1
2
3
4
5
6
7
8
9
10
11 package org.mule.providers.jms.websphere;
12
13 import org.mule.config.MuleProperties;
14 import org.mule.providers.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 public static final String DEFAULT_XA_RECEIVER_CLASS = WebsphereTransactedJmsMessageReceiver.class.getName();
25
26
27 public WebsphereJmsConnector()
28 {
29 setRecoverJmsConnections(isRecoverJmsConnections());
30 if (serviceOverrides == null || serviceOverrides.isEmpty())
31 {
32 Map overrides = Collections.singletonMap(MuleProperties.CONNECTOR_XA_TRANSACTED_MESSAGE_RECEIVER_CLASS,
33 DEFAULT_XA_RECEIVER_CLASS);
34 setServiceOverrides(overrides);
35 }
36 }
37 }