0 Replies Latest reply on Sep 23, 2008 12:03 PM by tonyfrench

    a4j:KeepAlive with Spring JDBC

    tonyfrench

      I have a datatable that I am trying to update from the db using a ajax request. I am attempting to use a4j:KeepAlive in my jsp to keep my request bean alive. Everything appears to work well until I attempt access the db during the ajax request and my DAOs appear to loose their db connections (SimpleJdbcDaoSupport.getDataSource() and SimpleJdbcDaoSupport.getSimpleJdbcTemplate() both return null).

      My DAOs are injected into a session bean and the session bean is injected into my request bean (that I am using KeepAlive on).

      Am I likely doing something wrong or is KeepAlive not intended to work the way that I am using it?