Similar to Bootstrap.groovy in Grails, how to add some initial data when an app starts?
Since in @PostContstruct method, the EntityManager is not available in Stateless session beans (or am I doing something wrong?), so what should be the right way to insert some initial data?
E.g. I want to add one Admin account in my system when the application starts.