5 Replies Latest reply on Nov 15, 2004 2:03 PM by Jaime Salvador

    Why an ejbLoad() call for each get* method?

    Ricardo Mannrich Newbie

      I'm writing an entity bean called from a session bean. For teste only, I do:

      TestLocal t = home.findByPrimaryKey(id);

      String str_field = t.getStringField();
      Integer int_field = t.getIntegerField();

      t.setStringField("New Value");
      t.setIntegerField(new Integer(123));


      And I see in the logs two calls to ejbLoad() and one to ejbStore().

      In my application, I need to do 70 get* calls (for different table fields), and these calls to ejbLoad() are slowing my application.

      Can anyone help me?