| Author |
How to instantiate an @Named annotated bean on application startup?
|
Alan Smith
Ranch Hand
Joined: Oct 19, 2011
Posts: 150
|
|
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: 150
|
|
Thanks but I don't understand how to use that!
|
 |
 |
|
|
subject: How to instantiate an @Named annotated bean on application startup?
|
|
|