javax.resource.spi.LocalTransaction Java Examples
The following examples show how to use
javax.resource.spi.LocalTransaction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TxConnectionListener.java From lams with GNU General Public License v2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void tidyup() throws ResourceException { // We have a hanging transaction if (localTransaction.get()) { LocalTransaction local = null; ManagedConnection mc = getManagedConnection(); try { local = mc.getLocalTransaction(); } catch (Throwable t) { throw new ResourceException(bundle.unfinishedLocalTransaction(this), t); } if (local == null) throw new ResourceException(bundle.unfinishedLocalTransactionNotProvideLocalTransaction(this)); else { local.rollback(); log.debugf("Unfinished local transaction was rolled back.%s", this); } } }
Example #2
Source File: JCAManagedConnection.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { if (DEBUG) { try { throw new NullPointerException( "Asif:JCAManagedConnection:getLocalTransaction"); } catch (NullPointerException npe) { npe.printStackTrace(); } } return this.localTran; }
Example #3
Source File: JCAManagedConnection.java From gemfirexd-oss with Apache License 2.0 | 5 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { if (DEBUG) { try { throw new NullPointerException( "Asif:JCAManagedConnection:getLocalTransaction"); } catch (NullPointerException npe) { npe.printStackTrace(); } } return this.localTran; }
Example #4
Source File: ActiveMQRAManagedConnection.java From activemq-artemis with Apache License 2.0 | 5 votes |
/** * Get the location transaction for the connection. * * @return The local transaction for the connection. * @throws ResourceException Thrown if operation fails. */ @Override public LocalTransaction getLocalTransaction() throws ResourceException { if (logger.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("getLocalTransaction()"); } LocalTransaction tx = new ActiveMQRALocalTransaction(this); if (logger.isTraceEnabled()) { ActiveMQRALogger.LOGGER.trace("LocalTransaction=" + tx); } return tx; }
Example #5
Source File: LazyManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 5 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { if (!localTransaction || xaTransaction) { throw new NotSupportedException("LocalTransaction not supported"); } else { return lazyLocalTransaction; } }
Example #6
Source File: JcaExecutorServiceManagedConnection.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction not supported"); }
Example #7
Source File: HelloWorldManagedConnectionImpl.java From ci.maven with Apache License 2.0 | 4 votes |
/** * @see ManagedConnection#getLocalTransaction() */ public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException(TRANSACTIONS_NOT_SUPPORTED_ERROR); }
Example #8
Source File: ConnectorProxyTest.java From tomee with Apache License 2.0 | 4 votes |
@Override public LocalTransaction getLocalTransaction() throws ResourceException { return null; }
Example #9
Source File: ConnectorProxyTest.java From tomee with Apache License 2.0 | 4 votes |
@Override public javax.resource.cci.LocalTransaction getLocalTransaction() throws ResourceException { return null; }
Example #10
Source File: ConnectorProxyNoNoArgConstructorTest.java From tomee with Apache License 2.0 | 4 votes |
@Override public LocalTransaction getLocalTransaction() throws ResourceException { return null; }
Example #11
Source File: ConnectorProxyNoNoArgConstructorTest.java From tomee with Apache License 2.0 | 4 votes |
@Override public javax.resource.cci.LocalTransaction getLocalTransaction() throws ResourceException { return null; }
Example #12
Source File: AutoConnectionTrackerTest.java From tomee with Apache License 2.0 | 4 votes |
@Override public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("getLocalTransaction() not supported"); }
Example #13
Source File: SampleManagedConnection.java From tomee with Apache License 2.0 | 4 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("getLocalTransaction() not supported"); }
Example #14
Source File: SampleManagedConnection.java From tomee with Apache License 2.0 | 4 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("getLocalTransaction() not supported"); }
Example #15
Source File: TestManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 4 votes |
/** * {@inheritDoc} */ public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("getLocalTransaction() not supported"); }
Example #16
Source File: DummyManagedConnectionImpl.java From cxf with Apache License 2.0 | 4 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { return null; }
Example #17
Source File: ManagedConnectionImpl.java From cxf with Apache License 2.0 | 4 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction is not supported."); }
Example #18
Source File: ManagedConnectionImpl.java From cxf with Apache License 2.0 | 4 votes |
public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException(); }
Example #19
Source File: ManagedTransactionAssistance.java From genericconnector with Apache License 2.0 | 4 votes |
@Override public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction not supported"); }
Example #20
Source File: HelloWorldManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction not supported"); }
Example #21
Source File: HelloWorldManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction not supported"); }
Example #22
Source File: HelloWorldManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction not supported"); }
Example #23
Source File: TxLogManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { log.trace("getLocalTransaction()"); return this; }
Example #24
Source File: PerfManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { return this; }
Example #25
Source File: WorkManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { throw new NotSupportedException("LocalTransaction not supported"); }
Example #26
Source File: UnifiedSecurityManagedConnection.java From ironjacamar with Eclipse Public License 1.0 | 2 votes |
/** * Returns an <code>javax.resource.spi.LocalTransaction</code> instance. * * @return LocalTransaction instance * @throws ResourceException generic exception if operation fails */ public LocalTransaction getLocalTransaction() throws ResourceException { return this; }