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