connection 2 « Connection « JPA Q&A





1. StatelessSession connection() method NOT deprecated???    forum.hibernate.org

Hi. I have a stored procedure that I need to call from Hibernate. I read many posts regarding the restrictions involved. I read about the hack that uses session.connection() with a CallableStatement, but the session.connection() method is deprecated, and I don't like the idea of using it. On the other hand, StatelessSession connection() is *not* deprecated. Why isn't it, are there ...

2. Running into no connections    forum.hibernate.org

Hi All, I am using JPA in my application. I am trying to understand the relation between EntityManager and Connection. When I am executing a large transaction I am getting the "Could not open connection" sort of exceptions My code looks like below public class MyPersistence { private EntityManager em; MyPersistence(EntityManager em) { this.em = em; } public void add(Object obj) ...

3. Q: About Hibernate Connection    forum.hibernate.org

Web Server: Tomcat 5 Database: PostgreSQL 8 When i run my Web Application in a private network. It is OK. But when i applied it in a production server there's an error. org.hibernate.exception.JDBCConnectionException: Cannot open connection. I think it is due to my firewall? The Network structure is Outside Client -> Firewall (Open Port = 80, 8080) -> Web Server & ...