File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Question regarding a session bean's life cycle ...
EJB - Remote or Local (JBoss)
Handlers and Providers Interfaces
How to call function upon loading of JSF application
Query fields for Annotations