aspose file tools
The moose likes JSF and the fly likes Access database in phase listener using persistence unit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Access database in phase listener using persistence unit" Watch "Access database in phase listener using persistence unit" New topic
Author

Access database in phase listener using persistence unit

Brajendra Mathema
Ranch Hand

Joined: Jun 02, 2009
Posts: 39
hi all,

i wanted to know that can i inject persistenceunit in phase listener of jsf.

i am able to inject it in managed bean using annotation as managed bean supports annotation

is it phase listeners does not support annotation

i want to access database in phase listener before restore view phase

can any own give me some idea.

thankyou

brajen
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Access database in phase listener using persistence unit
 
Similar Threads
Injection problem - not quite sure if this is something i should be using injection for
Inject persistence unit/context in phase listner
managed bean injection problem
@EJB annotation Injection
Phase Listener for a Specific Managed Bean