The moose likes Object Relational Mapping and the fly likes Connection closed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Connection closed" Watch "Connection closed" New topic
Author

Connection closed

Cristian Popovici
Ranch Hand

Joined: Apr 13, 2007
Posts: 32
Hello,

I am using JPA on sun app server with toplink as the persistence layer. I am using a session bean to load some data in the database Everything works fine, but from time to time the connection to the database is closed and I get this exception:



Any ideas? Thanks.
Cris.
Mike Keith
author
Ranch Hand

Joined: Jul 14, 2005
Posts: 304
Cristian,

Could this be a problem with the Glassfish connection pooling? You might want to post on the Glassfish forum in any case.


-Mike
Pro JPA 2: Mastering the Java Persistence API
 
IntelliJ Java IDE
 
subject: Connection closed
 
Threads others viewed
LocalTransactionException
JDBC connection using eclipse ide
DataSource.getConnection() returning closed connections
System error when using JPA
java jdbc and oracle - maximum open cursors exceeded
developer file tools