Resource Factory Reference
Resource factories represents the resources used by the bean such as JDBC.
A bean obtain the reference to these factories by using resource factory references in the deployment descriptor and looking up the environment variable from the JNDI entries during the runtime.
Resource factory references defined with resource-ref tag. resource-ref tag contains
- (optional) description element
- res-ref-name: gives the name of the environment variable
- res-ref-type: Java type of the resource factory
- res-auth: describes the authorization process. If Bean is used, then the bean implementation is responsible for providing authorization values. If Container is used, then the container uses the principal mapping supplied by the deployment tool.