Looking up an object on the JNDI tree

How to get this to work in your own page

Use the following EL expressions to get the ELResolver to work in your JSP page. Note more information about the ELResolver can be found in the API documentation.

This demo shows you how to use the custom JNDI EL resolver.

      <h:outputText value="#{jndi.lookup['UserTransaction']}"/>
    

Actual demo

Show the UserTransaction object: com.sun.enterprise.distributedtx.UserTransactionImpl@1df3032