5 Replies Latest reply on Feb 13, 2003 4:39 PM by petertje

    deletion of data

    avou

      I use a container managed entity bean. It works fine but when I shutdown JBoss or redeploy my project the data from the database that the entity bean uses, disappear. Sometimes I even lose the entire table. I will apreciate any help..

      Thanks in advance

      avou

        • 1. Re: deletion of data
          h2o_polo

          by defaut (in standardjbosscmp-jdbc.xml)
          <create-table>true</create-table>
          <remove-table>true</remove-table>

          if you want to overwite this behaviour you should do so in your jbosscmp-jdbc.xml

          • 2. Re: deletion of data
            avou

            It works! Thanks a lot!

            Avou

            • 3. Re: deletion of data
              avou

              It works! Thanks a lot!

              Avou

              • 4. Re: deletion of data
                vasuv

                I made the properties false both for create-table and remove-table. It still managed to remove them and it removed all the data along with it. I was wondering if you had to do something else along with changing these properties?

                I am using HSQL for my DS.

                Thank you,

                Vasu

                • 5. Re: deletion of data

                  Are you using jaws? (EJB 1.1 CMP)
                  In that case, you have to change these settings in the standardjaws.xml conf file.
                  Otherwise, double-check if you really edited the file in the correct configuration directory (e.g. /server/default/conf)

                  Hth
                  Peter.