Using NetBeans 6.9.1 + Glassfish3. My table generation strategy is <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/> My attempt to fill database with required data is to create @ApplicationScoped managed bean. Then inside @PostConstruct public void init() method declare some objects and persist them to database.
Then this Managed Bean is useless, but it will still be using memory.
Any advices how to solve it better?