Oracle provides several recommendations for tuning WebLogic Server EJBs. Following is a quick summary of the main recommendations pertaining to the tuning of EJBs and the EJB cache.
It is best to keep state in the middle tier to a minimum. Oracle recommends using stateless session beans where possible instead of stateful session beans because the server doesn't have to maintain state information.
The EJB specification requires that EJB calls are not passed by reference for consistency. As such, in WebLogic Server 8.1 and higher, call-by-reference is turned off by default. You must set call-by-reference to true when EJBs call one another within the same application. This also applies when an EJB is called by ...