Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Enterprise JavaBeans™ Specification, v1.1 - Sun Microsystems.pdf
Скачиваний:
11
Добавлен:
24.05.2014
Размер:
1.62 Mб
Скачать

Sun Microsystem Inc

Resource manager connection factory referencesEnterprise JavaBeans v1.1, Final Release

Enterprise bean environment

Note: A future EJB specification will add the “connector” mechanism that will allow an enterprise bean to use the API described in this section to obtain resource objects that provide access to additional back-end systems.

14.4.2 Deployer’s responsibility

The Deployer uses deployment tools to bind the resource manager connection factory references to the actual resource factories configured in the target operational environment.

The Deployer must perform the following tasks for each resource manager connection factory reference declared in the deployment descriptor:

Bind the resource manager connection factory reference to a resource manager connection factory that exists in the operational environment. The Deployer may use, for example, the JNDI LinkRef mechanism to create a symbolic link to the actual JNDI API name of the resource manager connection factory. The resource manager connection factory type must be compatible with the type declared in the res-type element.

Provide any additional configuration information that the resource manager needs for opening and managing the resource. The configuration mechanism is resource-manager specific, and is beyond the scope of this specification.

If the value of the res-auth element is Container, the Deployer is responsible for configuring the sign-on information for the resource manager. This is performed in a manner specific to the EJB Container and resource manager; it is beyond the scope of this specification.

For example, if principals must be mapped from the security domain and principal realm used at the enterprise beans application level to the security domain and principal realm of the resource manager, the Deployer or System Administrator must define the mapping. The mapping is performed in a manner specific to the EJB Container and resource manager; it is beyond the scope of the current EJB specification.

14.4.3 Container provider responsibility

The EJB Container provider is responsible for the following:

Provide the deployment tools that allow the Deployer to perform the tasks described in the previous subsection.

Provide the implementation of the resource manager connection factory classes for the resource managers that are configured with the EJB Container.

If the Bean Provider set the res-auth of a resource manager connection factory reference to Application, the Container must allow the bean to perform explicit programmatic sign-on using the resource manager’s API.

The Container must provide tools that allow the Deployer to set up resource manager sign-on information for the resource manager references whose res-auth element is set to Container. The minimum requirement is that the Deployer must be able to specify the user/pass-

215

11/24/99