[jboss-user] [EJB 3.0] - close JDBC connection closes entity manager connection

rajuanye do-not-reply at jboss.com
Sun Sep 16 09:13:02 EDT 2007


I am a connection using data source
@Resource (mappedName="java:/OracleDS") protected DataSource oracleDS;

when i close the connection(connection.close()) i can not use my entity manager.
I get "ResourceException: Transaction is not active".

apparantly when i close the connection, my entity manager connection is also closed.

how can I use JDBC connection, open and close it and still use entity manager.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084811#4084811

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084811

More information about the jboss-user mailing list