/** * Get the XA resource */ @Override public XAResource getXAResource() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getXAResource()"); } if (cri.getType() == ActiveMQRAConnectionFactory.CONNECTION || cri.getType() == ActiveMQRAConnectionFactory.QUEUE_CONNECTION || cri.getType() == ActiveMQRAConnectionFactory.TOPIC_CONNECTION) { return null; } try { lock(); return getXAResourceInternal(); } catch (Throwable t) { return null; } finally { unlock(); } }
/** * Get the XA resource */ @Override public XAResource getXAResource() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getXAResource()"); } if (cri.getType() == ActiveMQRAConnectionFactory.CONNECTION || cri.getType() == ActiveMQRAConnectionFactory.QUEUE_CONNECTION || cri.getType() == ActiveMQRAConnectionFactory.TOPIC_CONNECTION) { return null; } try { lock(); return getXAResourceInternal(); } catch (Throwable t) { return null; } finally { unlock(); } }