1 Reply Latest reply: May 2, 2013 4:19 PM by EJP RSS

    connection pooling doubt

    user637169

      I am using weblogic and oracle for getting connection.


      My doubt is I am printing
      1)conn.isClosed()
      2)conn
      NOTE: here conn means weblogic connection

      Code:
      System.out.println("*conn closed*******"+conn.isClosed());
      System.out.println("*conn*******"+conn);


      output:
      conn closed****** true
      conn****** weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection@91


      I observed the connection closed is TRUE. But still I am able to print the connection as mentioned in the output.

      But as per my knowledge connection should be null after connection is closed. IS IT CORRECT?

      Please advice