<document>
<localtoc/> <description> My application is coded to find a UserTransaction using the name "java:comp/env/UserTransaction", is there some way that I can link that name to "java:comp/UserTransaction", like a symbolic link on a Unix filesystem? </description>

The tag can be used for this purpose.

<example> <jndi-link> <jndi-name>java:comp/env/UserTransaction</jndi-name> <foreign-name>java:comp/UserTransaction</foreign-name> </jndi-link> </example>
</document>