0 Replies Latest reply on Jul 25, 2003 4:53 AM by Mark Frost

    Able to remove() read-only CMP Entity bean

    Mark Frost Newbie

      I have a CMP Entity Bean. I've set it to read-only in the jboss.xml deplyment descriptor, yet I'm able to perform remove operations. Why is this?

      Many thanks


      XmlCompanyROHome home = <lookup code>
      XmlCompanyRO xml = home.findByPrimaryKey(new Long(1));
      xml.remove(); //no error thrown and entity deleted!

      Extract from jboss.xml:



      <configuration-name>Standard CMP 2.x EntityBean with cache invalidation</configuration-name>