Using URL resources within an application

Java 2 Enterprise Edition (J2EE) applications can use Uniform Resource Locators (URLs) by looking up references to logically named URL connection factories through the java:comp/env/url subcontext, which is declared in the application deployment descriptor and mapped to installation specific URL resources.

About this task

As in the case of other J2EE resources, this can be done in order to eliminate the need for the application to hard code references to external resources. The process is the same used with other J2EE resources, such as JDBC objects and JavaMail sessions.

Procedure

  1. Develop an application that relies on naming features.
  2. Define resource references while assembling your application. A URL resource that uses a built-in protocol, such as HTTP, FTP, or file, can use the default URL provider. URL resources that use other protocols need to use a custom URL provider.
  3. Configure your URL resources within an application.
    1. Open the administrative console.
    2. Click Resources>URL Providers in the console navigation tree.
    3. Click URL_provider>URLs.
  4. Optional: Configure URL providers and URLs within an application client using the Application Client Resource Configuration Tool (ACRCT).
  5. Manage URL providers and URL resources used by the deployed application. To update or remove existing URL configurations:
    1. Open the administrative console.
    2. Click Resources > URL Providers in the console navigation tree.
    3. Select the URL Provider to modify.
    4. Click URLs.
    5. Select the URL to modify.
    6. Modify the URL properties.
    7. Click Apply or OK.
    To remove URL providers and URLs, after step 2, click URL_provider > URLs. Select the URL you want to remove and click Delete. Then, click Apply or OK.



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Sep 20, 2010 10:03:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-zos&topic=tjtc_uovr
File name: tjtc_uovr.html