I am using JSF and spring . I have a spring managed bean in session scope. I am getting a quite big list from a service call . I am calling the service and getting the list In the getter which is bind to the jsf view. when I run the app the getter is called multiple times.
so before the list is returned it is invoked again and it times out.
The list is dynamic I need to get fresh list on page load and every minute the list is refreshed using richfaces a4j poll . The list has to be retrived everytime from database.
If I change the bean to request scope and move the service call to the constructor the performance is worse.
can anyone suggest a better archetecture to do this ?