Coverage Report - org.mule.providers.jms.websphere.WebsphereJmsConnector
 
Classes in this File Line Coverage Branch Coverage Complexity
WebsphereJmsConnector
100%
7/7
25%
1/4
2
 
 1  
 /*
 2  
  * $Id: WebsphereJmsConnector.java 11728 2008-05-13 07:31:11Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.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  
  * Websphere-specific JMS connector.
 21  
  */
 22  
 public class WebsphereJmsConnector extends JmsConnector
 23  
 {
 24  4
     public static final String DEFAULT_XA_RECEIVER_CLASS = WebsphereTransactedJmsMessageReceiver.class.getName();
 25  
     
 26  
     /** Constructs a new WebsphereJmsConnector. */
 27  
     public WebsphereJmsConnector()
 28  2
     {
 29  2
         setRecoverJmsConnections(isRecoverJmsConnections());
 30  2
         if (serviceOverrides == null || serviceOverrides.isEmpty())
 31  
         {
 32  2
             Map overrides = Collections.singletonMap(MuleProperties.CONNECTOR_XA_TRANSACTED_MESSAGE_RECEIVER_CLASS,
 33  
                                                      DEFAULT_XA_RECEIVER_CLASS);
 34  2
             setServiceOverrides(overrides);
 35  
         }
 36  2
     }
 37  
 }