code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public void setXaDataSource(XADataSource xaDataSource) {
this.xaDataSource = xaDataSource;
} | Inject a pre-configured XADataSource instead of relying on className and driverProperties
to build one. Upon deserialization the xaDataSource will be null and will need to be
manually re-injected.
@param xaDataSource the pre-configured XADataSource. | setXaDataSource | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public String getTestQuery() {
return testQuery;
} | @return the query that will be used to test connections. | getTestQuery | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public void setTestQuery(String testQuery) {
this.testQuery = testQuery;
} | When set, the specified query will be executed on the connection acquired from the pool before being handed to
the caller. The connections won't be tested when not set. Default value is null.
@param testQuery the query that will be used to test connections. | setTestQuery | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public void setEnableJdbc4ConnectionTest(boolean enableJdbc4ConnectionTest) {
this.enableJdbc4ConnectionTest = enableJdbc4ConnectionTest;
} | When set and the underlying JDBC driver supports JDBC 4 isValid(), a Connection.isValid() call
is performed to test the connection before handing it to the caller.
If both testQuery and enableJdbc4ConnectionTest are set, enableJdbc4ConnectionTest takes precedence.
@param enableJdbc4ConnectionTest true if JDBC 4 isVali... | setEnableJdbc4ConnectionTest | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public boolean isEnableJdbc4ConnectionTest() {
return enableJdbc4ConnectionTest;
} | @return true if JDBC 4 isValid() testing should be performed, false otherwise. | isEnableJdbc4ConnectionTest | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public void setConnectionTestTimeout(int connectionTestTimeout) {
this.connectionTestTimeout = connectionTestTimeout;
} | Determines how many seconds the connection test logic
will wait for a response from the database.
@param connectionTestTimeout connection timeout | setConnectionTestTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public int getConnectionTestTimeout() {
return connectionTestTimeout;
} | @return how many seconds each connection test will wait for a response. | getConnectionTestTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public int getEffectiveConnectionTestTimeout() {
int t1 = getConnectionTestTimeout();
int t2 = getAcquisitionTimeout();
if ((t1 > 0) && (t2 > 0)) {
return Math.min(t1, t2);
} else {
return Math.max(t1, t2);
}
} | @return how many seconds each connection test will wait for a response,
bounded above by the acquisition timeout. | getEffectiveConnectionTestTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public int getPreparedStatementCacheSize() {
return preparedStatementCacheSize;
} | @return the target maximum prepared statement cache size. | getPreparedStatementCacheSize | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public void setPreparedStatementCacheSize(int preparedStatementCacheSize) {
this.preparedStatementCacheSize = preparedStatementCacheSize;
} | Set the target maximum size of the prepared statement cache. In
reality under certain unusual conditions the cache may temporarily
drift higher in size.
@param preparedStatementCacheSize the target maximum prepared statement cache size. | setPreparedStatementCacheSize | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public void setIsolationLevel(String isolationLevel) {
this.isolationLevel = isolationLevel;
} | Set the default isolation level for connections.
@param isolationLevel the default isolation level. | setIsolationLevel | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public String getCursorHoldability() {
return cursorHoldability;
} | @return cursorHoldability the default cursor holdability. | getCursorHoldability | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public void setCursorHoldability(String cursorHoldability) {
this.cursorHoldability = cursorHoldability;
} | Set the default cursor holdability for connections.
@param cursorHoldability the default cursor holdability. | setCursorHoldability | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public Reference getReference() throws NamingException {
if (log.isDebugEnabled()) { log.debug("creating new JNDI reference of " + this); }
return new Reference(
PoolingDataSource.class.getName(),
new StringRefAddr("uniqueName", getUniqueName()),
... | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | getReference | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public int getLoginTimeout() throws SQLException {
return xaDataSource.getLoginTimeout();
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | getLoginTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public void setLoginTimeout(int seconds) throws SQLException {
xaDataSource.setLoginTimeout(seconds);
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | setLoginTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public PrintWriter getLogWriter() throws SQLException {
return xaDataSource.getLogWriter();
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | getLogWriter | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public void setLogWriter(PrintWriter out) throws SQLException {
xaDataSource.setLogWriter(out);
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | setLogWriter | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return iface.isAssignableFrom(xaDataSource.getClass());
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | isWrapperFor | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@SuppressWarnings("unchecked")
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
if (isWrapperFor(iface)) {
return (T) xaDataSource;
}
throw new SQLException(getClass().getName() + " is not a wrapper for " + iface);
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | unwrap | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public int getInPoolSize() {
return pool.inPoolSize();
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | getInPoolSize | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public int getTotalPoolSize() {
return pool.totalPoolSize();
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | getTotalPoolSize | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
@Override
public void reset() throws Exception {
pool.reset();
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | reset | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
public java.util.logging.Logger getParentLogger() throws SQLFeatureNotSupportedException {
throw new SQLFeatureNotSupportedException();
} | {@link PoolingDataSource} must alway have a unique name so this method builds a reference to this object using
the unique name as {@link javax.naming.RefAddr}.
@return a reference to this {@link PoolingDataSource}. | getParentLogger | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/PoolingDataSource.java | Apache-2.0 |
private void enlistResource() throws SQLException {
if (jdbcPooledConnection == null)
throw new SQLException("connection handle already closed");
if (jdbcPooledConnection.getPoolingDataSource().getAutomaticEnlistingEnabled()) {
try {
TransactionContextHelper.enli... | Enlist this connection into the current transaction if automaticEnlistingEnabled = true for this resource.
If no transaction is running then this method does nothing.
@throws SQLException thrown when an error occurs during enlistment. | enlistResource | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/ConnectionJavaProxy.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/ConnectionJavaProxy.java | Apache-2.0 |
@Override
protected Map<String, Method> getMethodMap() {
return selfMethodMap;
} | Enlist this connection into the current transaction if automaticEnlistingEnabled = true for this resource.
If no transaction is running then this method does nothing.
@throws SQLException thrown when an error occurs during enlistment. | getMethodMap | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/ConnectionJavaProxy.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/ConnectionJavaProxy.java | Apache-2.0 |
private void createProxyConnectionClass() {
try {
Class<Connection> proxyClass = generateProxyClass(Connection.class, ConnectionJavaProxy.class);
proxyConnectionConstructor = proxyClass.getConstructor(new Class<?>[] {JdbcPooledConnection.class, Connection.class} );
} catch (Excep... | Create a proxy class: class ConnectionJavassistProxy extends ConnectionJavaProxy implements java.sql.Connection | createProxyConnectionClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | Apache-2.0 |
private void createProxyStatementClass() {
try {
Class<Statement> proxyClass = generateProxyClass(Statement.class, StatementJavaProxy.class);
proxyStatementConstructor = proxyClass.getConstructor(new Class<?>[] {JdbcPooledConnection.class, Statement.class});
} catch (Exception e)... | Create a proxy class: class StatementJavassistProxy extends StatementJavaProxy implements java.sql.Statement | createProxyStatementClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | Apache-2.0 |
private void createProxyCallableStatementClass() {
try {
Class<CallableStatement> proxyClass = generateProxyClass(CallableStatement.class, CallableStatementJavaProxy.class);
proxyCallableStatementConstructor = proxyClass.getConstructor(new Class<?>[] {JdbcPooledConnection.class, Callable... | Create a proxy class: class CallableStatementJavassistProxy extends CallableStatementJavaProxy implements java.sql.CallableStatement | createProxyCallableStatementClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | Apache-2.0 |
private void createProxyPreparedStatementClass() {
try {
Class<PreparedStatement> proxyClass = generateProxyClass(PreparedStatement.class, PreparedStatementJavaProxy.class);
proxyPreparedStatementConstructor = proxyClass.getConstructor(new Class<?>[] {JdbcPooledConnection.class, Prepared... | Create a proxy class: class PreparedStatementJavassistProxy extends PreparedStatementJavaProxy implements java.sql.PreparedStatement | createProxyPreparedStatementClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | Apache-2.0 |
private void createProxyResultSetClass() {
try {
Class<ResultSet> proxyClass = generateProxyClass(ResultSet.class, ResultSetJavaProxy.class);
proxyResultSetConstructor = proxyClass.getConstructor(new Class<?>[] {Statement.class, ResultSet.class});
} catch (Exception e) {
... | Create a proxy class: class ResultSetJavassistProxy extends ResultSetJavaProxy implements java.sql.ResultSet | createProxyResultSetClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | Apache-2.0 |
@SuppressWarnings("unchecked")
private <T> Class<T> generateProxyClass(Class<T> primaryInterface, Class<?> superClass)
throws NotFoundException, CannotCompileException, NoSuchMethodException, SecurityException {
// Make a new class that extends one of the JavaProxy classes (ie. superClass); use the... | Create a proxy class: class ResultSetJavassistProxy extends ResultSetJavaProxy implements java.sql.ResultSet | generateProxyClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcJavassistProxyFactory.java | Apache-2.0 |
private static JdbcProxyFactory initialize() {
try {
String jdbcProxyFactoryClass = TransactionManagerServices.getConfiguration().getJdbcProxyFactoryClass();
if ("auto".equals(jdbcProxyFactoryClass)) {
try {
ClassLoaderUtils.loadCla... | Initializer class used to initialize the proxy factory. | initialize | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcProxyFactory.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jdbc/proxy/JdbcProxyFactory.java | Apache-2.0 |
public PoolingConnectionFactory getPoolingConnectionFactory() {
return pooledConnection.getPoolingConnectionFactory();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getPoolingConnectionFactory | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
public Session getSession() throws JMSException {
return getSession(false);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getSession | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
public Session getSession(boolean forceXa) throws JMSException {
if (getState() == State.CLOSED)
throw new IllegalStateException("session handle is closed");
if (forceXa) {
if (log.isDebugEnabled()) { log.debug("choosing XA session (forced)"); }
return createXASessio... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getSession | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
private Session createNonXASession() throws JMSException {
// non-XA
if (session == null) {
session = pooledConnection.getXAConnection().createSession(transacted, acknowledgeMode);
if (listener != null) {
session.setMessageListener(listener);
if (l... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createNonXASession | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
private Session createXASession() throws JMSException {
// XA
if (xaSession == null) {
xaSession = pooledConnection.getXAConnection().createXASession();
if (listener != null) {
xaSession.setMessageListener(listener);
if (log.isDebugEnabled()) { log... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createXASession | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public String toString() {
return "a DualSessionWrapper in state " + getState() + " of " + pooledConnection;
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | toString | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void close() throws JMSException {
if (getState() != State.ACCESSIBLE) {
if (log.isDebugEnabled()) { log.debug("not closing already closed " + this); }
return;
}
if (log.isDebugEnabled()) { log.debug("closing " + this); }
// delisting
... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | close | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public Date getLastReleaseDate() {
return null;
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getLastReleaseDate | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void stateChanged(DualSessionWrapper source, State oldState, State newState) {
if (newState == State.IN_POOL) {
setState(State.CLOSED);
}
else if (newState == State.CLOSED) {
if (log.isDebugEnabled()) { log.debug("session state changing to CLOSED, cle... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | stateChanged | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void stateChanging(DualSessionWrapper source, State currentState, State futureState) {
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | stateChanging | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public MessageProducer createProducer(Destination destination) throws JMSException {
MessageProducerConsumerKey key = new MessageProducerConsumerKey(destination);
if (log.isDebugEnabled()) { log.debug("looking for producer based on " + key); }
MessageProducerWrapper messageProducer... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createProducer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public MessageConsumer createConsumer(Destination destination) throws JMSException {
MessageProducerConsumerKey key = new MessageProducerConsumerKey(destination);
if (log.isDebugEnabled()) { log.debug("looking for consumer based on " + key); }
MessageConsumerWrapper messageConsumer... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createConsumer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public MessageConsumer createConsumer(Destination destination, String messageSelector) throws JMSException {
MessageProducerConsumerKey key = new MessageProducerConsumerKey(destination, messageSelector);
if (log.isDebugEnabled()) { log.debug("looking for consumer based on " + key); }
... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createConsumer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public MessageConsumer createConsumer(Destination destination, String messageSelector, boolean noLocal) throws JMSException {
MessageProducerConsumerKey key = new MessageProducerConsumerKey(destination, messageSelector, noLocal);
if (log.isDebugEnabled()) { log.debug("looking for consumer ... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createConsumer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException {
MessageProducerConsumerKey key = new MessageProducerConsumerKey(topic);
if (log.isDebugEnabled()) { log.debug("looking for durable subscriber based on " + key); }
TopicSubscriberWrapper t... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createDurableSubscriber | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public TopicSubscriber createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal) throws JMSException {
MessageProducerConsumerKey key = new MessageProducerConsumerKey(topic, messageSelector, noLocal);
if (log.isDebugEnabled()) { log.debug("looking for durab... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createDurableSubscriber | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public MessageListener getMessageListener() throws JMSException {
return listener;
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getMessageListener | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void setMessageListener(MessageListener listener) throws JMSException {
if (getState() == State.CLOSED)
throw new IllegalStateException("session handle is closed");
if (session != null)
session.setMessageListener(listener);
if (xaSession != null)
... | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | setMessageListener | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void run() {
try {
Session session = getSession(true);
if (log.isDebugEnabled()) { log.debug("running XA session " + session); }
session.run();
} catch (JMSException ex) {
log.error("error getting session", ex);
}
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | run | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public XAResource getXAResource() {
return xaResource;
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getXAResource | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public ResourceBean getResourceBean() {
return getPoolingConnectionFactory();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getResourceBean | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public List<DualSessionWrapper> getXAResourceHolders() {
return Collections.singletonList(this);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getXAResourceHolders | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
public DualSessionWrapper getXAResourceHolderForXaResource(XAResource xaResource) {
if (xaResource == this.xaResource) {
return this;
}
return null;
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getXAResourceHolderForXaResource | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public Object getConnectionHandle() throws Exception {
return null;
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getConnectionHandle | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public boolean getTransacted() throws JMSException {
if (isParticipatingInActiveGlobalTransaction())
return true; // for consistency with EJB 2.1 spec (17.3.5)
return getSession().getTransacted();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getTransacted | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public int getAcknowledgeMode() throws JMSException {
if (isParticipatingInActiveGlobalTransaction())
return 0; // for consistency with EJB 2.1 spec (17.3.5)
return getSession().getAcknowledgeMode();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | getAcknowledgeMode | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void commit() throws JMSException {
if (isParticipatingInActiveGlobalTransaction())
throw new TransactionInProgressException("cannot commit a resource enlisted in a global transaction");
getSession().commit();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | commit | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void rollback() throws JMSException {
if (isParticipatingInActiveGlobalTransaction())
throw new TransactionInProgressException("cannot rollback a resource enlisted in a global transaction");
getSession().rollback();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | rollback | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void recover() throws JMSException {
if (isParticipatingInActiveGlobalTransaction())
throw new TransactionInProgressException("cannot recover a resource enlisted in a global transaction");
getSession().recover();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | recover | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public QueueBrowser createBrowser(javax.jms.Queue queue) throws JMSException {
enlistResource();
return getSession().createBrowser(queue);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createBrowser | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public QueueBrowser createBrowser(javax.jms.Queue queue, String messageSelector) throws JMSException {
enlistResource();
return getSession().createBrowser(queue, messageSelector);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createBrowser | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public BytesMessage createBytesMessage() throws JMSException {
return getSession().createBytesMessage();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createBytesMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public MapMessage createMapMessage() throws JMSException {
return getSession().createMapMessage();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createMapMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public Message createMessage() throws JMSException {
return getSession().createMessage();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public ObjectMessage createObjectMessage() throws JMSException {
return getSession().createObjectMessage();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createObjectMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public ObjectMessage createObjectMessage(Serializable serializable) throws JMSException {
return getSession().createObjectMessage(serializable);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createObjectMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public StreamMessage createStreamMessage() throws JMSException {
return getSession().createStreamMessage();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createStreamMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public TextMessage createTextMessage() throws JMSException {
return getSession().createTextMessage();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createTextMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public TextMessage createTextMessage(String text) throws JMSException {
return getSession().createTextMessage(text);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createTextMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public javax.jms.Queue createQueue(String queueName) throws JMSException {
return getSession().createQueue(queueName);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createQueue | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public Topic createTopic(String topicName) throws JMSException {
return getSession().createTopic(topicName);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createTopic | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public TemporaryQueue createTemporaryQueue() throws JMSException {
return getSession().createTemporaryQueue();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createTemporaryQueue | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public TemporaryTopic createTemporaryTopic() throws JMSException {
return getSession().createTemporaryTopic();
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | createTemporaryTopic | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
@Override
public void unsubscribe(String name) throws JMSException {
getSession().unsubscribe(name);
} | JMS Session wrapper that will send calls to either a XASession or to a non-XA Session depending on the calling
context.
@author Ludovic Orban | unsubscribe | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
protected void enlistResource() throws JMSException {
PoolingConnectionFactory poolingConnectionFactory = pooledConnection.getPoolingConnectionFactory();
if (poolingConnectionFactory.getAutomaticEnlistingEnabled()) {
getSession(); // make sure the session is created before enlisting it
... | Enlist this session into the current transaction if automaticEnlistingEnabled = true for this resource.
If no transaction is running then this method does nothing.
@throws JMSException if an exception occurs | enlistResource | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/DualSessionWrapper.java | Apache-2.0 |
public XAConnection getXAConnection() throws JMSException {
if (xaConnection == null)
throw new JMSException("XA connection handle has been closed");
return xaConnection;
} | Disposable Connection handle.
@author Ludovic Orban | getXAConnection | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
public JmsPooledConnection getPooledConnection() {
return pooledConnection;
} | Disposable Connection handle.
@author Ludovic Orban | getPooledConnection | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException {
return pooledConnection.createSession(transacted, acknowledgeMode);
} | Disposable Connection handle.
@author Ludovic Orban | createSession | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public void close() throws JMSException {
if (closed)
return;
closed = true;
pooledConnection.release();
} | Disposable Connection handle.
@author Ludovic Orban | close | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public String toString() {
return "a JmsConnectionHandle of " + pooledConnection;
} | Disposable Connection handle.
@author Ludovic Orban | toString | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public String getClientID() throws JMSException {
return getXAConnection().getClientID();
} | Disposable Connection handle.
@author Ludovic Orban | getClientID | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public void setClientID(String jndiName) throws JMSException {
getXAConnection().setClientID(jndiName);
} | Disposable Connection handle.
@author Ludovic Orban | setClientID | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public ConnectionMetaData getMetaData() throws JMSException {
return getXAConnection().getMetaData();
} | Disposable Connection handle.
@author Ludovic Orban | getMetaData | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public ExceptionListener getExceptionListener() throws JMSException {
return getXAConnection().getExceptionListener();
} | Disposable Connection handle.
@author Ludovic Orban | getExceptionListener | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public void setExceptionListener(ExceptionListener listener) throws JMSException {
getXAConnection().setExceptionListener(listener);
} | Disposable Connection handle.
@author Ludovic Orban | setExceptionListener | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public void start() throws JMSException {
getXAConnection().start();
} | Disposable Connection handle.
@author Ludovic Orban | start | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public void stop() throws JMSException {
getXAConnection().stop();
} | Disposable Connection handle.
@author Ludovic Orban | stop | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
return getXAConnection().createConnectionConsumer(destination, messageSelector, sessionPool, maxMessages);
} | Disposable Connection handle.
@author Ludovic Orban | createConnectionConsumer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
@Override
public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
return getXAConnection().createDurableConnectionConsumer(topic, subscriptionName, messageSelector, sessionPo... | Disposable Connection handle.
@author Ludovic Orban | createDurableConnectionConsumer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsConnectionHandle.java | Apache-2.0 |
public XAConnection getXAConnection() {
return xaConnection;
} | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | getXAConnection | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
public PoolingConnectionFactory getPoolingConnectionFactory() {
return poolingConnectionFactory;
} | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | getPoolingConnectionFactory | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
public synchronized RecoveryXAResourceHolder createRecoveryXAResourceHolder() throws JMSException {
DualSessionWrapper dualSessionWrapper = new DualSessionWrapper(this, false, 0);
dualSessionWrapper.getSession(true); // force creation of XASession to allow access to XAResource
return new Recover... | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | createRecoveryXAResourceHolder | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
@Override
public synchronized void close() throws JMSException {
if (xaConnection != null) {
poolingConnectionFactory.unregister(this);
setState(State.CLOSED);
try {
xaConnection.close();
} finally {
xaConnection = null;
... | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | close | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
@Override
public List<DualSessionWrapper> getXAResourceHolders() {
synchronized (sessions) {
return new ArrayList<DualSessionWrapper>(sessions);
}
} | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | getXAResourceHolders | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
@Override
public Object getConnectionHandle() throws Exception {
if (log.isDebugEnabled()) { log.debug("getting connection handle from " + this); }
State oldState = getState();
setState(State.ACCESSIBLE);
if (oldState == State.IN_POOL) {
if (log.isDebugEnabled()) { log.... | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | getConnectionHandle | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
private void testXAConnection() throws JMSException {
if (!poolingConnectionFactory.getTestConnections()) {
if (log.isDebugEnabled()) { log.debug("not testing connection of " + this); }
return;
}
if (log.isDebugEnabled()) { log.debug("testing connection of " + this); }
... | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | testXAConnection | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
protected void release() throws JMSException {
if (log.isDebugEnabled()) { log.debug("releasing to pool " + this); }
closePendingSessions();
// requeuing
try {
TransactionContextHelper.requeue(this, poolingConnectionFactory);
} catch (BitronixSystemException ex) {
... | Implementation of a JMS pooled connection wrapping vendor's {@link XAConnection} implementation.
@author Ludovic Orban
TODO: how can the JMS connection be accurately tested? | release | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/resource/jms/JmsPooledConnection.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.