ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Неверов Дмитрий <neverov...@nkmk.ru>
Subject maxRequests, help
Date Thu, 01 Sep 2005 00:43:59 GMT
Hi, 

I have SqlMapConfig.xml:

<?xml version='1.0' encoding='windows-1251' ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
  
  <settings cacheModelsEnabled="true"
    enhancementEnabled="true"
    lazyLoadingEnabled="true" maxRequests="32"
    maxSessions="8" maxTransactions="2"
    useStatementNamespaces="false" />
  
  <transactionManager type="JDBC">
    <dataSource type="JNDI">
      <property name="DataSource" value="jdbc/himDS"/>
    </dataSource>
  </transactionManager>

  <sqlMap resource="nkmk/ibatis/sqlmap/maps/test.xml"/>
  <sqlMap resource="nkmk/ibatis/sqlmap/maps/Element.xml"/>
  <sqlMap resource="nkmk/ibatis/sqlmap/maps/Gost.xml"/>

</sqlMapConfig>

insert:

  <insert id="insertGost" parameterClass="Gost">
    insert into sp_gost (name_gost) values (#gostName#)
  </insert>

and sprGosts.jsp, that used to insert new Gost:

    String gostName = WebUtils.getStringParameter(request, "gost_name", "");
    GostDAO gostDAO = new GostDAO(); 
    Gost gost = new Gost();
    gost.setGostName(gostName);
    int a = gostDAO.insertGost(gost); 
    response.sendRedirect("sprGosts.jsp");


After 2 inserts browser try to open page (redirect after insert), but
never open it.

Early I have such problem because of wrong values of maxRequests,
maxSessions, maxTransactions parameters. But now I think they are
right.

There is my mistake?

-- 
Thanks.
mailto:neverov_dg@nkmk.ru





Mime
View raw message