1 Reply Latest reply on Feb 7, 2007 7:20 AM by juha

    Performance issue on getter method of entity bean

    arovinth

      We are using BMP entity beans in our application deployed on Jboss3.2.7 server with commit Option ?A? for container

      Configuration in StandardJboss.xml on jboss conf folder.

      Whenever any getter method is called on entity bean, ejbStore () method is called.

      This causes performance drain in our application. Could any one please tell me why calling a getter method of entity Bean

      calls ejbstore () many times instead of ejbLoad ()?



      In our Project two applications are accessing the same database; due to this we changed the commit option in StandardJboss.xml

      To ?B?. In this scenario, the performance got still worse, since for each getter method invoked on bean, ejbLoad() and ejbStore() are called .



      Could anybody help me to figure out the solution to above problem? Is any other properties do I need to set to reduce the

      calls to ejbLoad() and ejbStore() many times?

        • 1. Re: Performance issue on getter method of entity bean

          You need to mark your methods as read-only in meta-inf/jboss.xml

          Also bear in mind that in general store is driven by transaction demarcation, and you control it by setting appropriate transaction attributes -- but in your simple case read-only tag should be sufficient.