4 Replies Latest reply on Jan 28, 2004 4:54 AM by dfollen

    refreshing data for BMP Entity EJB

    jbossalex

       

      "jbossalex" wrote:
      Hi:

      I am using a BMP Entity EJB which accesses data which is modified by non-java apps.

      These non-java applications update the data represented by my EJB. However, my entity EJB is not
      updating with the new data. Is there anyway I can
      force an ejbLoad() ? Is there a setting in the ejb-jar.xml file? Weblogic has a setting called:
      db-is-shared which refreshes the data everytime
      a bean instance is called.

      Any help would be greatly appreciated.

      Alex


        • 1. Re: refreshing data for BMP Entity EJB
          milowe

           

          "milowe" wrote:
          Use commit-option B, C or D that best fit in your solution.

          /micke


          • 2. Re: refreshing data for BMP Entity EJB
            jbossalex

             

            "jbossalex" wrote:
            Can I put commit options B,C, or D in my ejb-jar.xml file?

            Could you give me an example or point me to some documentation?


            • 3. Re: refreshing data for BMP Entity EJB
              milowe

               

              "milowe" wrote:
              "milowe" wrote:
              Add it in your jboss.xml
              ...
              <jboss>
              <container-configurations>
              <container-configuration extends="Standard BMP EntityBean">
              <container-name>YourExtendedConfig</container-name>
              <commit-option>B</commit-option>
              </container-configuration>

              <entity>
              <ejb-name>YourBean</ejb-name>
              <configuration-name>YourExtendedConfig</configuration-name>
              ....
              </entity>
              ...

              Its in all in the doc that I assume you are planning
              to buy any second now...
              /micke


              • 4. Re: refreshing data for BMP Entity EJB
                dfollen

                 

                "dfollen" wrote:
                Hi,

                I'm looking for a way to cnage the commit option using the JBoss IDE and XDoclets. Is there a way to do that? Should I post that in the JBoss IDE forum instead maybe?

                Thanks

                /David