1 Reply Latest reply on Apr 8, 2002 1:02 PM by Sacha Labourey

    caching entity beans upon jboss startup?

    Colin Newbie

      I want to be able to just call home.findByPrimaryKey()
      upon server startup and not home.create() followed by
      home.findByPrimaryKey(). How can this be done?

      Thanks for all your help!!!

        • 1. Re: caching entity beans upon jboss startup?
          Sacha Labourey Master

          If your beans are stored in your database, then when you start JBoss, you can directly make home.findByPrimaryKey to find them! Create needs only to be called to create new entities, not to cache existing one. Caching is completely transparent and, as a bean developer/user, you should not even think about it.

          Hopefuly, I didn't correctly understand your question ;)