You can create URL providers and URLs for your client application
using the Application Client Resource Configuration Tool (ACRCT).
Before you begin
During this task, you create URL providers and URLs for your
client application. In a separate administrative task, you must install
the Java code for the required URL provider on the
client machine on which the client application resides.
Procedure
- Start the Application Client Resource Configuration Tool
(ACRCT).
- Open the EAR file for which you want to configure the new
URL provider. The EAR file contents display in a tree view.
- Select the JAR file in which you want to configure the
new URL provider from the tree.
- Expand the JAR file to view the contents.
- Click the folder called URL Providers. Complete one of
the following actions:
- Right click the folder and select New.
- Click Edit > New on the menu bar.
- Configure the URL provider properties in the resulting
property dialog.
- Click OK.
- Click File > Save on the menu
bar to save your changes.
Example
This code example illustrates how to
configure URL and URL provider settings for application clients:
<resources.url:URLProvider xmi:id="URLProvider_1" name="urlProvider:name"
description="urlProvider:description"
streamHandlerClassName="urlProvider:streamHandlerClass"
protocol="urlProvider:protocol">
<classpath>urlProvider:classpath</classpath>
<factories xmi:type="resources.url:URL" xmi:id="URL_1" name="urlFactory:name"
jndiName="urlFactory:jndiName" description="urlFactory:description"
spec="urlFactory:url">
<propertySet xmi:id="J2EEResourcePropertySet_18">
<resourceProperties xmi:id="J2EEResourceProperty_20" name="urlFactory:customName"
value="urlFactory:customValue"/>
</propertySet>
</factories>
<propertySet xmi:id="J2EEResourcePropertySet_19">
<resourceProperties xmi:id="J2EEResourceProperty_21" name="urlProvider:customName"
value="urlProvider:customValue"/>
</propertySet>
</resources.url:URLProvider>
- Required fields:
- URL Properties page: name, jndiName, url
- URL Provider Properties page: name