WAS v8.5 > End-to-end paths > Mail, URLs, and other J2EE resourcesUse URL resources within an application
Java EE 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. As in the case of other Java EE 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 Java EE resources, such as JDBC objects and JavaMail sessions.
- Develop an application that relies on naming features.
- Define resource references while assembling the 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.- Configure your URL resources within an application.
- Open the dmgr console.
- Click Resources>URL in the console navigation tree.
- Click either URL Providers or URLs to modify the appropriate resource.
- Optional: Configure URL providers and URLs within an application client using the Application Client Resource Configuration Tool (ACRCT).
- Manage URL providers and URL resources used by the deployed application. To update or remove existing URL configurations:
- Open the dmgr console.
- Click Resources > URL in the console navigation tree.
- Click either URL Providers or URLs to modify the appropriate resource.
- Select the URL to modify.
- Modify the URL properties.
- Click Apply or OK.
To remove URL providers and URLs, after step 2, click URL_provider > URLs. Select the URL to remove and click Delete. Then, click Apply or OK.
Subtopics
- URLs
A URL is an identifier that points to an electronically accessible resource, such as a directory file on a machine in a network, or a document stored in a database.- URL provider page
Use this page to view existing URL providers, which supply the implementation classes necessary for WAS to access a URL through a specific protocol. The default URL provider provides connectivity through protocols that are supported by the IBM Developer Kit for the Java™ Platform, compatible with the Java 2 Standard Edition Platform 1.3.1. These protocols include HyperText Transfer Protocol (HTTP) and File Transfer Protocol (FTP), which work for must URLs.- URL provider settings
Use this page to configure URL providers, which support WAS connections to a URL over a specific protocol.- URL configurations page
Use this page to view existing URL configurations, which are sets of properties that define WAS connections to URLs. URLs are location names that represent electronically accessible resources, such as a directory file on a machine in a network or a document stored in a database.- URL configuration settings
Use this page to define connections to Uniform Resource Locators (URLs), which are location names that represent electronically accessible resources. A collection of URL connection properties is often called a URL configuration in the WAS environment. The targeted resources are remote to your Application Server installation.- URLs: Resources for learning
Use the following links to find relevant supplemental information about URLs. The information resides on IBM and non-IBM Internet sites, whose sponsors control the technical accuracy of the information.
Related
Assemble applications
Configure new URLs with the Application Client Resource Configuration Tool
Configure new URL providers for application clients