本文整理汇总了Java中com.atomikos.icatch.jta.UserTransactionImp类的典型用法代码示例。如果您正苦于以下问题:Java UserTransactionImp类的具体用法?Java UserTransactionImp怎么用?Java UserTransactionImp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UserTransactionImp类属于com.atomikos.icatch.jta包,在下文中一共展示了UserTransactionImp类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: atomikosUserTransaction
import com.atomikos.icatch.jta.UserTransactionImp; //导入依赖的package包/类
/**
* Atokmikos user transaction.
* @return Atokmikos user transaction
*/
@Bean
public UserTransaction atomikosUserTransaction() {
final UserTransactionImp userTransactionImp = new UserTransactionImp();
try {
userTransactionImp.setTransactionTimeout(environment.getRequiredProperty(PROPERTY_NAME_TRANSACTION_TIMEOUT, Integer.class));
} catch (final SystemException e) {
throw new IllegalArgumentException("Kan timeout niet zetten", e);
}
return userTransactionImp;
}
开发者ID:MinBZK,项目名称:OperatieBRP,代码行数:15,代码来源:RepositoryConfiguratie.java
示例2: userTransaction
import com.atomikos.icatch.jta.UserTransactionImp; //导入依赖的package包/类
@Bean
public UserTransaction userTransaction() {
UserTransactionImp userTransactionImp = new UserTransactionImp();
try {
userTransactionImp.setTransactionTimeout(1000);
} catch (SystemException e) {
e.printStackTrace();
}
return userTransactionImp;
}
开发者ID:flowable,项目名称:flowable-examples,代码行数:11,代码来源:Configuration.java
示例3: userTransactionImp
import com.atomikos.icatch.jta.UserTransactionImp; //导入依赖的package包/类
@Bean
public UserTransactionImp userTransactionImp() throws SystemException {
UserTransactionImp uti = new UserTransactionImp();
uti.setTransactionTimeout(300);
return uti;
}
开发者ID:bjornharvold,项目名称:bearchoke,代码行数:8,代码来源:JpaCoreConfig.java
示例4: getUserTransaction
import com.atomikos.icatch.jta.UserTransactionImp; //导入依赖的package包/类
public static UserTransaction getUserTransaction() {
UserTransaction utx = new UserTransactionImp();
return utx;
}
开发者ID:jbeetle,项目名称:BJAF3.x,代码行数:5,代码来源:JTAService.java
示例5: userTransaction
import com.atomikos.icatch.jta.UserTransactionImp; //导入依赖的package包/类
@Bean(name = "userTransaction")
public UserTransaction userTransaction() throws Throwable {
UserTransactionImp userTransactionImp = new UserTransactionImp();
userTransactionImp.setTransactionTimeout(10000);
return userTransactionImp;
}
开发者ID:YihuaWanglv,项目名称:spring-boot-jta-atomikos-sample,代码行数:7,代码来源:MainConfig.java
示例6: userTransaction
import com.atomikos.icatch.jta.UserTransactionImp; //导入依赖的package包/类
@Bean
public UserTransaction userTransaction() throws Throwable {
UserTransactionImp userTransactionImp = new UserTransactionImp();
userTransactionImp.setTransactionTimeout(8000);
return userTransactionImp;
}
开发者ID:adrobisch,项目名称:brainslug,代码行数:7,代码来源:SpringHibernateConfiguration.java
注:本文中的com.atomikos.icatch.jta.UserTransactionImp类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论