1 Reply Latest reply on Dec 24, 2001 4:55 AM by ma zhenduo

    the record can't be save to ms sql 2000 server

    ma zhenduo Newbie

      here is
      JBoss3.0 ,MS Sql Server2000.

      "MSSQL2000DS" had been successfully delopyed.
      the context of jbosscmp-jdbc.xml is [
      <?xml version="1.0" encoding="UTF-8"?>
      <jbosscmp-jdbc>

      java:/MSSQL2000DS
      false
      <create-table>false</create-table>
      <remove-table>false</remove-table>
      <tuned-updates>false</tuned-updates>
      <read-only>false</read-only>
      <time-out>300</time-out>
      <select-for-update>false</select-for-update>
      <pk-constraint>true</pk-constraint>
      <relation-mapping-style>foreign-key</relation-mapping-style>


      <enterprise-beans>

      <ejb-name>MaterialBean</ejb-name>
      <table-name>Material</table-name>
      <create-table>false</create-table>
      <cmp-field>
      <field-name>materialID</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>name</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>price</field-name>
      </cmp-field>

      <enterprise-beans>
      ]

      The datasource of CMP had set with "java:/MSSQL2000DS".
      now,i can create a bean and find it with primary key,
      but, there is NOT the record in the database.
      when i restart the jboss, i still can find it with primary key.
      why?

      thank a lot.