开发者

JSF session beans best practices

开发者 https://www.devze.com 2023-01-23 15:31 出处:网络
I am working on a JSF application that was written overseas and it has some performance issues. Ive been trying to un开发者_Go百科derstand why the application might run slow and ive noticed that ever

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

Ive been trying to un开发者_Go百科derstand 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?


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! :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消