Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javax.transaction:jta:jar:1.0.1B not found #3

Open
GoogleCodeExporter opened this issue Feb 26, 2016 · 9 comments
Open

javax.transaction:jta:jar:1.0.1B not found #3

GoogleCodeExporter opened this issue Feb 26, 2016 · 9 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. i download the code (svn)
2. run mvn install 

maybe a dependence in the pom file ?




Original issue reported on code.google.com by [email protected] on 28 Aug 2009 at 5:37

@GoogleCodeExporter
Copy link
Author

do you have to download the file jta.jar and intall it with "mvn install" 
command

Original comment by [email protected] on 9 Sep 2009 at 5:56

@GoogleCodeExporter
Copy link
Author

yes, now work fine. but maven not install this automatically.

Thanks !

Original comment by [email protected] on 9 Sep 2009 at 6:04

@GoogleCodeExporter
Copy link
Author

By the way, i need your help, because i can't save or update in the database,
GenericDao does nothing. Thanks a lot.

Original comment by [email protected] on 11 Sep 2009 at 5:12

@GoogleCodeExporter
Copy link
Author

use you transactions ?

Original comment by [email protected] on 11 Sep 2009 at 6:28

@GoogleCodeExporter
Copy link
Author

Do not use transactions because it assumed that the GenericDao do it 
internally, and
which is not really the way to implement it with this library

Original comment by [email protected] on 11 Sep 2009 at 6:48

@GoogleCodeExporter
Copy link
Author

but if you never do the commit command, you data can´t persist. try that (if 
you
like, in the dao)

Original comment by [email protected] on 11 Sep 2009 at 6:52

@GoogleCodeExporter
Copy link
Author

Can you say me how???

Original comment by [email protected] on 11 Sep 2009 at 7:26

@GoogleCodeExporter
Copy link
Author

getCurrentSession().beginTransaction();
getCurrentSession().getTransaction().commit();


in a try catch statement, in the exception block, can use 
getCurrentSession().getTransaction().rollback();


this is not the best lovely, must pretty is with Aspect

Original comment by [email protected] on 11 Sep 2009 at 7:32

@GoogleCodeExporter
Copy link
Author

in my Dao I do all that in the GenericDao is already done?

Original comment by [email protected] on 11 Sep 2009 at 7:58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant