JNDI « Transaction « JPA Q&A

1. How to get hibernate-entitymanager to work with JTA out of JBoss?    stackoverflow.com

I am building a tool for out-of-container EJB testing. I have managed to run Hibernate's EntityManager in it successfully. Now I want to integrate it with JTA to enable strict control ...

2. How to obtain JNDI data source for JPA/JTA DAO integration test?    stackoverflow.com

I have a JPA application that has specified JTA transactions in persistence.xml. For whatever reason, I have found that when using JTA, you MUST specify a JNDI data source within ...

3. What to put into jta-data-source of persistence.xml?    stackoverflow.com

What value should I place into <jta-data-source> of my persistence.xml? In glassfish admin panel I created a datasource name "abcDS". In my jndi.properties (inside src/test/resources) I defined it like this:

What shall I ...

4. Could not open Hibernate Session for transaction    stackoverflow.com

I am getting this error. please help me.

org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
 $Proxy20.findFlierByID(Unknown Source)
 servlets.AwardS ...

5. Hibernate via JNDI JBoss 6 - Correctly done?    stackoverflow.com

I've setup hibernate via JNDI in JBoss 6.0.0.Final by following alot of articles and had some problems but got it sorted and it works, but the question is, have I done ...

6. Transactional JNDI access    forum.hibernate.org

Exactly. The best I was ever able to find was "bridge" technologies. These came in two flavors: 1) Back you LDAP structure with a RDBMS; 2) Expose your RDBMS as an LDAP structure. There were even some JDBC drivers for LDAP servers. But you are correct. Plain old LDAP servers are of course tuned for read operations, but I guess I ...

7. Disabling autocommit when using JNDI Datasource    forum.hibernate.org

Hi, I am having problems disabling autocommit for my datasource when i'm using a JNDI DataSource. There is a paragraph in the documentation that says ; " JDBC connections obtained from a JNDI datasource will automatically participate in the container-managed transactions of the application server. Arbitrary connection properties may be given by prepending "hibernate.connection" to the property name. For example, you ...

8. Performance prob many JNDI-lookups to Websphere transaction    forum.hibernate.org

Hello, We have observed a performance problem in our J2EE-application caused by several JNDI-lookups on the Websphere-transaction when loading data from a hibernate dao. In the info log of the websphere application server the notification INFO org.hibernate.util.NamingHelper.JNDI InitialContext properties:{} is printed several times. We dont know exactly why this notification is logged out so many times. We have debugged this problem ...