Operating Systems: i5/OS
Personalize the table of contents and search results
Use 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.
Overview
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
- Develop an application that
relies on naming features.
- 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.
- Configure your URL resources within an application.
- Open the administrative 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 administrative 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 you want to remove and click Delete. Then, click Apply or OK.
}
URLs
URL provider collection
URL provider settings
URL collection
URL configuration settings
URLs: Resources for learning
Related tasks
Assembling applications
Configuring new URLs with the Application Client Resource Configuration
Tool
Configuring new URL providers for application clients
|