uCosminexus Application Server, EJB Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

4.2.2 Acquiring and releasing a resource connection

If you are using a J2EE resource connection, such as JDBC and JMS in an Enterprise Bean, release the connection with the close method of the Connection class. If you do not release the connection, the resource might be consumed before you can anticipate the consumption. To avoid such a situation, consider the following points during the implementation: