I'm using JBoss Portal 6.1.1 and Richfaces 4 for a large scale portal application and I've found a small issue regarding the behavoiur of the portal. This may be something I am doing incorrectly or it may be the behaviour of the portal container. What is happening is that I have managed bean components that are being initialised more than once. So, if I have class A as a managed bean, I've found the portal is creating two instances rather than one.
Also, can anyone point me at best practices for avoiding calls being invoked more than once. This is a large legacy app that I am trying to tidy up and I've found that DB calls are being made twice as well as web service calls, which is killing the performance of the application.
Any advice would be appreciated,