1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.transport.jms.activemq; |
8 | |
|
9 | |
import org.mule.api.MuleContext; |
10 | |
import org.mule.util.ClassUtils; |
11 | |
|
12 | |
import javax.jms.ConnectionFactory; |
13 | |
|
14 | |
public class ActiveMQXAJmsConnector extends ActiveMQJmsConnector |
15 | |
{ |
16 | |
public static final String ACTIVEMQ_XA_CONNECTION_FACTORY_CLASS = "org.apache.activemq.ActiveMQXAConnectionFactory"; |
17 | |
|
18 | |
public ActiveMQXAJmsConnector(MuleContext context) |
19 | |
{ |
20 | 0 | super(context); |
21 | 0 | } |
22 | |
|
23 | |
protected ConnectionFactory getDefaultConnectionFactory() throws Exception |
24 | |
{ |
25 | 0 | ConnectionFactory connectionFactory = (ConnectionFactory) |
26 | |
ClassUtils.instanciateClass(ACTIVEMQ_XA_CONNECTION_FACTORY_CLASS, getBrokerURL()); |
27 | 0 | applyVendorSpecificConnectionFactoryProperties(connectionFactory); |
28 | 0 | return connectionFactory; |
29 | |
} |
30 | |
} |