Question

I am working on a JSF application that was written overseas and it has some performance issues.

Ive been trying to understand why the application might run slow and ive noticed that every backing bean is session scoped, and many beans use other beans, so they are likely all instantiated.

There are maybe 40 backing beans each containing around 4000 lines of code and lots of moving parts.

Can someone confirm or deny my hunch that all this crap in each session is making the application sluggish?

Was it helpful?

Solution

I don't think that this may be the cause of performance issues. Session scoped beans are only created once for a session. So subsequent requests won't create new instances of these beans. But of cause making all beans session scoped is far away from good practice! :-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top