Joined: Mon Aug 30, 2010 5:26 am Posts: 3
|
when I am running this code lastVersionNo = dataAccessManager.getJdbcTemplate() .query(QUERY_LAST_VERS_NO_BY_ENTITL,...
I am getting error - connection manager closed.
org.hibernate.HibernateException: connection manager has been closed at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:141) at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:50) at $Proxy16.prepareStatement(Unknown Source) at org.springframework.jdbc.core.JdbcTemplate$SimplePreparedStatementCreator.createPreparedStatement(JdbcTemplate.java:1318) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:580) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673)
How can I get a connection and run this query.
thanks
|
|