1 Reply Latest reply on Oct 27, 2001 6:48 AM by p_d_austin

    Best practice for storing home references?

    jpvasquez

      I have some stateless session beans acting as a facade for some entity beans. Is it OK to store a reference to a home interface at the session bean class level, or is it better to do a lookup() each time I need to access the home interface of the entities?

        • 1. Re: Best practice for storing home references?
          p_d_austin

          My approach is to lookup and cache the reference to the home interface in the setSessionContext method and then release it in the unsetSessionContext method.

          As only one client can call each instance of the session bean there is no worries around synchronisation that you need to worry about.

          Paul