Guest User

Untitled

a guest
Jan 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import javax.annotation.PostConstruct;
  2. import javax.ejb.Singleton;
  3. import javax.ejb.Startup;
  4. import javax.persistence.EntityManager;
  5. import javax.persistence.PersistenceContext;
  6.  
  7. @Startup
  8. @Singleton
  9. public class InitBean {
  10.  
  11. @PersistenceContext
  12. EntityManager em;
  13.  
  14. public InitBean() {
  15.  
  16. }
  17.  
  18. @PostConstruct
  19. private void init() {
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment