Oracle TopLink Developer's Guide
10g Release 3 (10.1.3) B13593-01 |
|
![]() Previous |
![]() Next |
When you configure a coordinated cache to use a JNDI naming service (see "Configuring a Naming Service Type"), you can add new environment properties to the environment of the initial JNDI context.
Table 91-12 summarizes which coordinated caches support context properties.
Table 91-12 Coordinated Cache Support for Context Properties
Coordinated Cache | Using TopLink Workbench
|
Using Java |
---|---|---|
JMS Coordinated Cache |
|
|
RMI Coordinated CacheFoot 1 |
|
|
CORBA Coordinated CacheFootref 1 |
|
|
Custom Coordinated Cache |
|
|
Footnote 1 When JNDI naming service is selected (see "Configuring a Naming Service Type").
Using TopLink Workbench, TopLink uses the new environment properties you add to create the initial context for both local and remote JNDI access.
Using Java, you can configure different properties for local and remote JNDI access using a session customizer class to call TransportManager
methods setLocalContextProperties
and setRemoteContectProperties
(for more information, see "Configuring Customizer Class").
To define JNDI context properties, use this procedure:
Select a session or session broker in the Navigator. Its properties appear in the Editor.
Ensure the Enable Cache Coordination option is selected, then select the appropriate coordinated cache Type (see Table 91-12). The cache coordination options appear on the tab.
Ensure the JNDI Naming Service option is selected. See "Configuring a Naming Service Type".
In the JNDI Naming Service area, click Properties. The Edit Properties dialog box appears.
Click Add to create a new property. The Add New Property dialog box appears.
To change (or delete) an existing property, select the property and click Edit (or Remove).
Use this table to enter data in the following fields on the dialog box.
Field | Description |
---|---|
Name | The name of the property. |
Value | The value of the property. |