public void setConnectorClassName(final String connectorClassName) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setConnectorClassName(" + connectorClassName + ")"); } strConnectorClassName = connectorClassName; setParsedConnectorClassNames(ActiveMQRaUtils.parseConnectorConnectorConfig(connectorClassName)); }
/** * Get the default session type * * @return The value */ public String getSessionDefaultType() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getSessionDefaultType()"); } return mcfProperties.getSessionDefaultType(); }
/** * Set the default session type * * @param type either javax.jms.Topic or javax.jms.Queue */ public void setSessionDefaultType(final String type) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setSessionDefaultType(" + type + ")"); } mcfProperties.setSessionDefaultType(type); }
/** * Creates a Connection Factory instance * * @return javax.resource.cci.ConnectionFactory instance * @throws ResourceException Thrown if a connection factory can't be created */ @Override public Object createConnectionFactory() throws ResourceException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.debug("createConnectionFactory()"); } return createConnectionFactory(new ActiveMQRAConnectionManager()); }
private void createCF() { if (connectionFactory == null) { connectionFactory = ra.getConnectionFactory(mcf.getProperties()); } }
@Override public ActiveMQConnectionFactory getDefaultFactory() throws ResourceException { return ((ActiveMQResourceAdapter) mcf.getResourceAdapter()).getDefaultActiveMQConnectionFactory(); }
/** * Get the connection metadata * * @return The connection metadata * @throws JMSException Thrown if an error occurs */ @Override public ConnectionMetaData getMetaData() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getMetaData()"); } checkClosed(); return mcf.getMetaData(); }
/** * Get the connection metadata * * @return The metadata */ public ConnectionMetaData getMetaData() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getMetadata()"); } return new ActiveMQRAConnectionMetaData(); }
/** * Check state * * @throws JMSException Thrown if an error occurs */ void checkState() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("checkState()"); } session.checkState(); }
/** * Set the useTryLock. * * @param useTryLock the useTryLock. */ public void setUseTryLock(final Integer useTryLock) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setUseTryLock(" + useTryLock + ")"); } mcfProperties.setUseTryLock(useTryLock); }
/** * Constructor */ public ActiveMQRAManagedConnectionFactory() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("constructor()"); } ra = null; cm = null; mcfProperties = new ActiveMQRAMCFProperties(); }
/** * Get the useTryLock. * * @return the useTryLock. */ public Integer getUseTryLock() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getUseTryLock()"); } return mcfProperties.getUseTryLock(); }
/** * Start * * @throws JMSException Thrown if an error occurs */ void start() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("start()"); } if (mc != null) { mc.start(); } }
/** * Get the user name * * @return The user name * @throws ResourceException Thrown if operation fails */ @Override public String getUserName() throws ResourceException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getUserName()"); } return mc.getUserName(); }
public void setConnectionParameters(final String config) { if (config != null) { this.unparsedProperties = config; raProperties.setParsedConnectionParameters(ActiveMQRaUtils.parseConfig(config)); } }
@Override public XAJMSContext createXAContext() { incrementRefCounter(); return new ActiveMQRAXAJMSContext(this, threadAwareContext); }
public void setConnectorClassName(final String connectorClassName) { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("setConnectorClassName(" + connectorClassName + ")"); } strConnectorClassName = connectorClassName; setParsedConnectorClassNames(ActiveMQRaUtils.parseConnectorConnectorConfig(connectorClassName)); }
/** * Get the default session type * * @return The value */ public String getSessionDefaultType() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getSessionDefaultType()"); } return mcfProperties.getSessionDefaultType(); }
/** * Get the connection metadata * * @return The metadata */ public ConnectionMetaData getMetaData() { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getMetadata()"); } return new ActiveMQRAConnectionMetaData(); }
/** * Check state * * @throws JMSException Thrown if an error occurs */ void checkState() throws JMSException { if (ActiveMQRALogger.LOGGER.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("checkState()"); } session.checkState(); }