View Javadoc

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