Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.1.0) Part Number B28221-02 |
|
|
View PDF |
To improve session bean performance, consider the following:
For session beans, using bean instance pooling can increase performance by reducing bean creation overhead. For more information, see "Managing the Bean Instance Pool".
For EJB 3.0 session beans, if you are using interceptors and your interceptors are stateless, you can specify singleton interceptors. This OC4J EJB 3.0 extension creates a singleton for each interceptor class. This singleton is shared by all session bean instances that use that interceptor class. This reduces memory requirements and life cycle management. For more information, see "Singleton Interceptors".