Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inject persistence unit/context in phase listner  RSS feed

 
Brajendra Mathema
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi can we inject persistence context in phase listener...i want to make database query and show information in welcome page so if i can make query in before or after phase of restore view i would be able to show those information ...can this be done using persistence context/unit in phase listener if not why

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!