本文整理汇总了Java中javax.resource.spi.TransactionSupport类的典型用法代码示例。如果您正苦于以下问题:Java TransactionSupport类的具体用法?Java TransactionSupport怎么用?Java TransactionSupport使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TransactionSupport类属于javax.resource.spi包,在下文中一共展示了TransactionSupport类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doBenchTransx
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
protected void doBenchTransx() throws Exception {
DataSource ds = ManagedDataSourceBuilder.builder()
.dataSource(new StubDataSource())
.transaction(TransactionSupport.TransactionSupportLevel.NoTransaction)
.userName("brettw")
.password("")
.minIdle(0)
.maxPoolSize(32)
.connectionTimeout(8000)
.build();
doBench(ds);
((AutoCloseable) ds).close();
}
示例2: setup
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
@Setup(Level.Trial)
public void setup(BenchmarkParams params) throws Exception
{
DS = ManagedDataSourceBuilder.builder()
.dataSource(new StubDataSource())
.userName("gnodet")
.password("")
.transaction(TransactionSupport.TransactionSupportLevel.NoTransaction)
.minIdle(0)
.maxPoolSize(maxPoolSize)
.connectionTimeout(8000)
.build();
}
示例3: createNoTxActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation W/o Tx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxConnectionFactory", true, 10);
}
示例4: createNoTxNoPrefillActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx w/o Prefill
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "AllIdleConnections");
}
示例5: createNoTxActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
return ResourceAdapterFactory
.createCapacityActivation(null, null, TransactionSupport.TransactionSupportLevel.NoTransaction,
"CapacityNoTxConnectionFactory", MaxPoolSizeIncrementer.class.getName(),
MinPoolSizeDecrementer.class.getName());
}
示例6: createNoTxActivationFILO
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxActivationFILO() throws Throwable
{
return ResourceAdapterFactory
.createCapacityActivation(null, null, TransactionSupport.TransactionSupportLevel.NoTransaction,
"CapacityNoTxConnectionFactoryFILO", MaxPoolSizeIncrementer.class.getName(),
TimedOutDecrementer.class.getName());
}
示例7: createNoTxActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxConnectionFactory", false, 0);
}
示例8: createActivationLocalTx
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createActivationLocalTx() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.LocalTransaction,
"UnifiedSecurityLocalTxConnectionFactory", false, 0);
}
示例9: createActivationXaTx
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation
*
* @throws Throwable In case of an error
*/
@Deployment(order = 4)
private ResourceAdaptersDescriptor createActivationXaTx() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.XATransaction,
"UnifiedSecurityXATxConnectionFactory", false, 0);
}
示例10: createNoTxNoPrefillActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx w/o Prefill
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "AllInvalidIdleConnections", true, null, null);
}
示例11: createNoTxNoPrefillActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx w/o Prefill
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0, "InvalidIdleConnections", true, null, null);
}
示例12: createNoTxActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation W/o Tx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 2)
private ResourceAdaptersDescriptor createNoTxActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, "DefaultSecurityDomain",
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxConnectionFactory", false, 0);
}
示例13: createLocalTxActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation W/ LocalTx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createLocalTxActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, "DefaultSecurityDomain",
TransactionSupport.TransactionSupportLevel.LocalTransaction,
"UnifiedSecurityLocalTxConnectionFactory", false, 0);
}
示例14: createXATxActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation W/ XATx
*
* @throws Throwable In case of an error
*/
@Deployment(order = 4)
private ResourceAdaptersDescriptor createXATxActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, "DefaultSecurityDomain",
TransactionSupport.TransactionSupportLevel.XATransaction,
"UnifiedSecurityXATxConnectionFactory", false, 0);
}
示例15: createNoTxNoPrefillActivation
import javax.resource.spi.TransactionSupport; //导入依赖的package包/类
/**
* The activation w7o Tx w/o Prefill
*
* @throws Throwable In case of an error
*/
@Deployment(order = 3)
private ResourceAdaptersDescriptor createNoTxNoPrefillActivation() throws Throwable
{
return ResourceAdapterFactory.createUnifiedSecurityDeployment(null, null,
TransactionSupport.TransactionSupportLevel.NoTransaction,
"UnifiedSecurityNoTxNoPrefillConnectionFactory", false, 0);
}