uCosminexus Application Server, EJB Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

4.2.8 Precautions during the use of the URLConnection class

The java.net.URLConnection class uses the setUseCaches(boolean) method to specify whether or not to use the cache information when acquiring a connection for the specified URL. If the setUseCaches(false) method is specified for the URLConnection class, the target object will be generated for each connection. When using this class from the codes within the J2EE application, a memory leak might occur in the JavaVM of the J2EE server.