6 Replies Latest reply on Feb 16, 2003 11:51 PM by Vlad

    JDBC connection and several calls of the same session bean

    Vlad Newbie

      Why JBoss allocates a new connection for each session call (within the single HTTP request processing - if it can be important)?
      Code:
      Session1 session = SessionBeanHelper.createSession1();
      for(Iterator i = ...) {
      session.doATransaction((TransactionData)i.next());
      }
      session.remove();

      If cycle iterates more times than connection pool size limit then JBoss stops processing due it cannot allocate a connection.