1 Reply Latest reply on Mar 18, 2007 1:26 AM by sonu131

    Entity Bean data synchronize with DataBase with commit optio

    sonu131

      I have an entity bean which is marked as NonShared with commit option A. Now we have made an application that can update the data directly into the database . I do not want to change the commit option. Is there any way I can invalidate the cache for that particular bean if any cache has been done and then invalidate it and tell jboss to reload the data for that entity bean instance.

      thanks.

        • 1. Re: Entity Bean data synchronize with DataBase with commit o
          sonu131

          Please if somebody can advice me.

          I have an entity bean which is marked as NonShared with commit option A. a new backend application is coming up which can update the data via direct jdbc calls. this happens rarely but when that will happen my entity bean if already cached will get out of sync with the changes updated .
          I have two options here.

          1. Make the enetity bean shared so that it can come in sync with database.
          2. Stop updating via direct jdbc calls, go via ejb only.

          But I am thinking if.
          I can invalidate the cache for that particular bean But do not know how to do it or there is some other better option?

          Jboss in non-cluster mode.

          thanks.