This sample application demonstrates the use of the external resource. It displays the size of the file specified in server.xml -> external-jndi-resource -> external-jndi-name element. Click here to execute the Java Naming and Directory Interface (JNDI) external resource sample application.