Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.annotation.PostConstruct;
- import javax.ejb.Singleton;
- import javax.ejb.Startup;
- import javax.persistence.EntityManager;
- import javax.persistence.PersistenceContext;
- @Startup
- @Singleton
- public class InitBean {
- @PersistenceContext
- EntityManager em;
- public InitBean() {
- }
- @PostConstruct
- private void init() {
- }
- }
Add Comment
Please, Sign In to add comment