EJB programming & troubleshooting: release connection to connection pool in weblogic

  1. How do I get an handle to the weblogic ConnectionPool object in my application and release the connection back to the pool? We arent using any entity bean, are accessing the database through helper classes (Fast Lane Read Pattern).
  2. Jndi lookup to get the datasource.
    then datasource.getConnection() will give you the connection object.
  3. As Shiva said, get the connection from datasource.Once you are done, close the connection.The Connection will be sent back to the POOL.