Configuring J2EE Application XML Files - Client (
Page 5 of 5 )
There are two XML files that contain client configuration information: application-client.xml and orion-application-client.xml.
J2EE application-client.xml The application-client.xml file contains the JNDI information necessary for accessing the server application.
<application-client>
<display-name>TemplateBean</display-name>
<ejb-ref>
<ejb-ref-name>TemplateBean</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>mTemplateHome</home>
<remote>Template</remote>
</ejb-ref>
</application-client>
OC4J-Specific orion-application-client.xml The orion-application-client.xml file contains JNDI mappings for the client. The JNDI mappings map the EJB reference logical name to the JNDI name for the EJB, as shown in this example:
<orion-application-client>
<ejb-ref-mapping name="TemplateBean"
location="myapp/myapp-ejb/TemplateBean" />
</orion-application-client>
Connector
There are two connector-related XML files: ra.xml and oc4j-ra.xml.
ra.xml The ra.xml file contains J2EE-related configuration information.
oc4j-ra.xml The oc4j-ra.xml file contains OC4J-specific configuration information.
Using the Application Server Control to Configure OC4J
In the previous subsections, you learned how to manually edit the various OC4J configuration files. However, you can change OC4J configuration easily through the Application Server Control. To edit OC4J server configuration files using the Application Server Control, follow these steps:
- On the OC4J home page, click the Administration tab to display the Administration page.
- On the Administration page, click the Advanced Properties button.
- The OC4J Advanced Properties page appears listing all configuration files available for editing for the current OC4J server.
- The OC4J Advanced Properties Page appears, listing all the OC4J configuration files you can edit. Click the configuration file you want to edit. You can then make your configuration changes in the editable text box that appears.
- Click the Apply button to save your configuration changes.
Please check back next week for the continuation of this article.