8 Replies Latest reply on Dec 12, 2006 12:18 AM by jboss-nth-fan

    question about application scope component?

    liudan2005

      I have an entity bean which maps to a database table. I need to retrive some data from database through this entity bean when applicaiton starts up so all other back beans and ejbs can access it. I am thinking of making an application scoped object, which retrives data when applicaton starts up. What's the best way to make the object ? If it's in a J2SE environment, I would make it a Pojo with all field static and retrive data through jdbc in static block. Now is seam environment, I think it should be a application scoped object. Should I make it a backbean, or stateless/stateful ejb. This object is gonna be frequently access by other component So I wanna know what would be the best way to achive the performance