Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
private ContainerTransactionManager() throws SystemException {
        transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager();
        transactionManager.setTransactionTimeout(60000) ;
    }


This code was changed to

C#
private ContainerTransactionManager() throws SystemException {
        transactionManager = com.atomikos.icatch.jta.UserTransactionManager.transactionManager();
        transactionManager.setTransactionTimeout(60000) ;


so it is showing error under
C#
transactionManager();


Why it is showing so?I think i miss some jar files.can anyone please suggest me the necessary jar files for implementing atomikos jta.which are the jar files in atomikos corresponding to jbossjts and jbossts-common jar files.
Please help.
Posted
Comments
sreedevi1 8-Jan-15 5:40am    
Now I'm getting like this.What is the reason for this?

No properties path set - looking for transactions.properties in classpath...
transactions.properties not found - looking for jta.properties in classpath...
Failed to open transactions properties file - using default values
Exception in thread "main" java.lang.NoSuchMethodError: com.atomikos.icatch.system.Configuration.getVersion()Ljava/lang/String;
at com.atomikos.icatch.standalone.UserTransactionServiceImp.<clinit>(UserTransactionServiceImp.java:82)
at com.atomikos.icatch.standalone.UserTransactionServiceFactory.getUserTransactionService(UserTransactionServiceFactory.java:72)
at com.atomikos.icatch.config.UserTransactionServiceImp.checkInit(UserTransactionServiceImp.java:351)
at com.atomikos.icatch.config.UserTransactionServiceImp.createTSInitInfo(UserTransactionServiceImp.java:370)
at com.atomikos.icatch.jta.UserTransactionManager.checkSetup(UserTransactionManager.java:89)
at com.atomikos.icatch.jta.UserTransactionManager.setTransactionTimeout(UserTransactionManager.java:235)
at com.suntecgroup.xelerate.ds.ContainerTransactionManager.<init>(ContainerTransactionManager.java:45)
at com.suntecgroup.xelerate.ds.ContainerTransactionManager.getInstance(ContainerTransactionManager.java:36)
at com.suntecgroup.xelerate.ds.DataSourceUtils.getDataSource(DataSourceUtils.java:23)
at com.suntecgroup.xelerate.ds.DataSourceUtils.getConnection(DataSourceUtils.java:29)
at TestMain.main(TestMain.java:24)

1 solution

I don't think the atomikos has a static method for getting the transaction manager. Try just newing it up instead;
Java
private ContainerTransactionManager() throws SystemException {
        transactionManager = new com.atomikos.icatch.jta.UserTransactionManager();
        transactionManager.setTransactionTimeout(60000) ;
}


Hope this helps,
Fredrik
 
Share this answer
 
Comments
sreedevi1 8-Jan-15 3:54am    
Yes you are right.There is no static method for getting the transaction manager in atomikos..
And your answer helped..thanku so much Fedrik
Fredrik Bornander 8-Jan-15 7:51am    
Glad I could help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900