JDBC « Transaction « JPA Q&A





1. EJB 3 with JDBC    stackoverflow.com

Is it possible to use EJB 3 with JDBC. I read somewhere, that it's allowed. However, I hear that EJB 3 implementation uses JTA, by default. What does that mean for JDBC? ...

2. Working with JDBC in EJB-Hibernate env    stackoverflow.com

I have a little of confusion about JDBC connection, transactions and their integration in EJB, JTA, Hibernate environment. My doubts are:

  1. when we use @Resource DataSource ds; ... ds.getConnection() , are ...

3. Does hibernate uses jdbc internally or JTA internally or it is confihurable?"    stackoverflow.com

i am new to hibernate and started studying hibernate.The chapter i am going thru uses hibarnate with JDBC().My first question is Does hibernate uses jdbc internally or JTA internally to ...

4. rollBack() in hibernate and JDBC    coderanch.com

5. how Hibernate, JPA, EJB3, JTA, JDBC Transactions are interlinked?    coderanch.com

OK, now your question makes sense. JPA is just a specification, not an actual implementation. Products like Hibernate, Toplink, OpenJPA implement the JPA specification. Usually these products go above and beyond what is in the specification. Meaning adding more features. EJB 1 and 2 had Entity Beans, which to put mildly, sucked. So in EJB3, the removed Entity Beans and created ...

6. How to handle commit errors in JPA    java-forums.org

I have a question about JPA/JTA error handling. If I commit a transaction, and it fails, what is the proper way to bring my entities back under management, fix the problem, and then re-commit? Specifically, I am wondering how to determine the exact error that occured (so I can present it to the uer for correction). Also, it is my understanding ...

7. Hibernate issue with transaction    java-forums.org

This can be a tricky thing to figure out. Are you using more than one session somehow? Using threads? Are you using c3po ? I think the problem could be related to any of those things. It will probably take quite a bit of debugging on your part. Off hand I do not see anything wrong with your code. Maybe someone ...

8. Hibernate and JDBC within same transaction    forum.hibernate.org

9. No persister for jdbc transaction    forum.hibernate.org

Hi all, I've been getting the following error: No persister for: net.sf.hibernate.transaction.JDBCTransaction net.sf.hibernate.MappingException: No persister for: net.sf.hibernate.transaction.JDBCTransaction at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344) at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2574) at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2581) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1316) at com.idollarz.datamodel.tools.PopulateDB.main(PopulateDB.java:358) I tried changing from mysql (using myisam tables.. which don't support transactions) to sapdb/maxdb.. but the error persists.. So it's not that. Could someone point me in the right direction? Thanks!!





10. auto commit allways on - Domino Driver JDBC    forum.hibernate.org

net.sf.hibernate.exception.GenericJDBCException: Cannot open connection at net.sf.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:80) at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69) at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at net.sf.hibernate.impl.BatcherImpl.convert(BatcherImpl.java:328) at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:295) at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3373) at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3333) at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:67) at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:784) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) ...

11. about jdbc transaction    forum.hibernate.org

first question:what's these words' meaning? [10-29 11:00:16.375 INFO TransactionManagerLookupFactory.getTransactionManagerLookup():33] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) second question:why there's no sql like "commit" printed on stdout when I used jdbc transaction? I am using MySQL, version: 4.1.14-nt, InnoDB tables, mysql-connector-java-3.1.11 org.gjt.mm.mysql.Driver Using dialect: org.hibernate.dialect.MySQLInnoDBDialect org.hibernate.connection.ProxoolConnectionProvider and it does print these informations: [10-29 ...

12. about jdbc transaction    forum.hibernate.org

first question:what's these words' meaning? [10-29 11:00:16.375 INFO TransactionManagerLookupFactory.getTransactionManagerLookup():33] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) second question:why there's no sql like "commit" printed on stdout when I used jdbc transaction? I am using MySQL, version: 4.1.14-nt, InnoDB tables, mysql-connector-java-3.1.11 org.gjt.mm.mysql.Driver Using dialect: org.hibernate.dialect.MySQLInnoDBDialect org.hibernate.connection.ProxoolConnectionProvider and it does print these informations: [10-29 ...

13. Error JDBC COMMIT    forum.hibernate.org