0 Replies Latest reply on Sep 2, 2004 7:30 PM by davidchen

    what does that warning mean (no current tx!)

    davidchen Newbie

      Hi, there:

      I'm sorry, actually, this warning information was issued when a line is called to close the connection. Which means it happens when
      "con.close()" was called. So, I just re-describe my problem below:

      I have an application to use jboss2.4.8, which keeps getting datasource, dataconnection by calling:
      DataSource ds = (DataSource)initialContext.lookup("java:/DefaultDS");
      and
      con = ds.getConnection();
      .......
      if(resultSet != null) resultSet.close();
      if(statement != null) statement.close();
      if(con != null) con.close();

      It seems that whenever I call "con.close()", it gives me the warning information like:

      XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@9314f has no current tx!
      Could anyone please tell me:
      1. what does that warning information mean?
      2. what can I do to get rid of this warning? (I can filter that warning from my log file by changing log4j.properties, but, just doubt if anything wrong in my code).

      Thanks a lot

      David Chen