I have a simple EJB3.0 application and I want to pre-populate the database with some entity instances. How do I do this?
Thanks a lot for your help.
Take a look at JMX MBeans and their lifecycle methods. You can easily create one in EJB3 using the @Service annotation, and set your prepopulation logic to fire when the "start" method is called.