View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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   * Websphere-specific JMS connector.
18   */
19  public class WebsphereJmsConnector extends JmsConnector
20  {
21      
22      public static final String DEFAULT_XA_RECEIVER_CLASS = WebsphereTransactedJmsMessageReceiver.class.getName();
23      
24      /** Constructs a new WebsphereJmsConnector. */
25      public WebsphereJmsConnector(MuleContext context)
26      {
27          super(context);
28          if (serviceOverrides == null || serviceOverrides.isEmpty())
29          {
30              Map overrides = Collections.singletonMap(MuleProperties.CONNECTOR_XA_TRANSACTED_MESSAGE_RECEIVER_CLASS,
31                  DEFAULT_XA_RECEIVER_CLASS);
32              setServiceOverrides(overrides);
33          }
34      }
35  }