This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes How to instantiate an @Named annotated bean on application startup? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to instantiate an @Named annotated bean on application startup?" Watch "How to instantiate an @Named annotated bean on application startup?" New topic
Author

How to instantiate an @Named annotated bean on application startup?

Alan Smith
Ranch Hand

Joined: Oct 19, 2011
Posts: 152

Hi,

I have a bunch of data in a database that I would like to use on the homepage of my application. I am using @Named annotated beans. I know that the @ManagedBean annotation has an eager attribute, is there anything similar when using the @Named annotation?

Thanks,
Alan
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Take a look at this: http://stackoverflow.com/questions/7828987/jsf-named-bean-eager-application-scoped-aka-managedbeaneager-true


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Alan Smith
Ranch Hand

Joined: Oct 19, 2011
Posts: 152



Thanks but I don't understand how to use that!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to instantiate an @Named annotated bean on application startup?
 
Similar Threads
EJB - Remote or Local (JBoss)
How to call function upon loading of JSF application
Question regarding a session bean's life cycle ...
Handlers and Providers Interfaces
Query fields for Annotations