1 Reply Latest reply on Feb 16, 2009 1:51 PM by jkronegg

    performance page vs. session bean

    ajanz

      i got an application which uses a tabpanel. each tab has its own page. but the contents e.g. data of a table and so on is all bound to the session bean.


      what's better for performance? use all with session bean? or build a page bean for each tab of the panel and in/outject some values? or does all this has no affect on performance?

        • 1. Re: performance page vs. session bean
          jkronegg

          Having your data with SESSION scope will lead the pages to be generated faster than having the data with a PAGE scope because the bean holding the data will not be recreated at each page.


          BTW, which kind of performance do you need?



          • reduced server workload (i.e. generate the page's tab whenever the user request it)

          • reduced response time when the user switches tabs (i.e. use Richfaces's client switching mode, all pages generated at once on the server)