2 Replies Latest reply on Nov 24, 2008 8:27 AM by Daniel En

    reload not working on CMP read-only beans

    Brad Newbie

      I have a bunch of read-only CMP entity beans that are bound to oracle views. When this data is updated outside of JBoss (i.e. by another app or on the database), JBoss does not seem to reload the data. I have set the read-time-out to zero (after having it set to 1 minute) and still no reloads. All commit-options are set to "B" both in the standardjboss.xml and project jboss.xml files.

      Here is a my defaults used by the entity beans in my jbosscmp-jdbc.xml file.


      java:/myDataSource
      <datasource-mapping>Oracle9i</datasource-mapping>
      <create-table>false</create-table>
      <remove-table>false</remove-table>
      <read-only>true</read-only>
      <read-time-out>0</read-time-out>


      I am using JBoss 3.0.4 / Oracle 9.2.0.1 / JSDK 1.4.0.

      I have read other postings for this, but they all say to use commit-option "B". This doesn't seem to do the trick for me. Does anyone have a solution for this problem?

      Brad.