The resource environment references are another example of environment entries. They allow the Bean Provider to refer to administered objects that are associated with resources (for example, JMS destinations), by using logical names. Resource environment references are defined in the standard deployment descriptor.
<resource-env-ref> <resource-env-ref-name>jms/stockQueue</resource-env-ref-name> <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type> </resource-env-ref> |
Binding of the resource environment references to administered objects in the target operational environment is done in the JOnAS-specific deployment descriptor using the jonas-resource-env element.
<jonas-resource-env> <resource-env-ref-name>jms/stockQueue</resource-env-ref-name> <jndi-name>myQueue<jndi-name> </jonas-resource-env> |