1 Reply Latest reply on Mar 5, 2004 5:51 AM by adrian.brock

    Lazy Loading Bean Managed EJBs??

    oldblue

      Is it possible to lazy load with bean managed EJBs? I see it can be done easily with container managed EJBs.

      I'm porting an app from weblogic which was doing this somehow. (I'm not sure if this was default and/or configurable in weblogic.) And rather than rewriting to use CMP for this one bean, I'd like to see if I can configure for lazy loading.

      Any help would be greatly appreciated!!

        • 1. Re: Lazy Loading Bean Managed EJBs??

          If you are loading the data, you need to handle the lazy loading.
          It is a minor optimization anyway, mainly suited for large fields like blobs.

          You should concentrate on implementing things like read-ahead to avoid
          the N+1 problem.

          Regards,
          Adrian