Because the EJB container manages a pool of database connections, enterprise beans can quickly obtain and release the connections. For example, a business method might connect to a database, insert a row, and then disconnect. In a session bean, a business method that connects to a database should be transactional. The transaction will help maintain data integrity. To connect to the Cloudscape database bundled with this release, you do not specify a database user and password.
Authentication is performed by a separate service.
For more information about authentication, see the chapter on Security . However, some types of databases do require a user and password during connection. For these databases, if the getConnection call has no parameters, you must specify the database user and password with the deploytool . If you wish to obtain the database user and password programmatically, you do not need to specify them with the deploytool . The EJB container maintains the pool of database connections.