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