Application Server Quickstart---3
天下维客,你可以修改的网络知识库
|
Eclipse编辑 技术应用:
其他资源: |
Connector Configuration
There are 3 basic steps to configuring an application server connector:
- Specify application server installation details
- Enable the connector
- Specify the JDK that will be used when launching the application server
Please note that some connectors may require additional configuration details. Consult your specific application vendor for additional requirements.
Step-1: Specify application server installation details
Browse to and select the root directory of your application server installation (See Figure 3). MyEclipse will attempt to prepopulate the remaining connector fields with common default values used by your application server. Figure 4 depicts the default settings for the Tomcat 5 installation at the d:\dev\appservers\Tomcat 5 path.
Figure 3. Initial Tomcat 5 server location details
Figure 4. Default Tomcat 5 server location details
Step-2: Enabling the connector
Selecting the Enable button enables the connector to be used by MyEclipse J2EE project deployment and debugging services.
Figure 5. Tomcat 5 connector enabled
Step-3: Specify the JDK environment to be used for launching the application server
The final configuration step is to specify the JDK installation that the connector will use to launch the application server instance. See requirement #4 for background details for this task. The JDK information is specified on the connector's JDK preference page. Figure 6 illustrates the Tomcat 5 JDK preference page and the JDK selection list highlighted in red. If you have previously configured a JDK installation then select it now from the JDK drop-down list (see Figure 8); otherwise perform Step-3a to configure a JDK installation. The JDK list shown in Figure 6 only lists the default JRE that is used to launch MyEclipse, which is insufficient for supporting the requirements of most application servers. Therefore the sake of this example we must perform Step-3a to complete this connector's configuration.
Figure 6. Tomcat 5 JDK preference page
Step-3a: Defining a new JDK installation for Eclipse
From the connector's JDK preference page select "Add". This will open the Eclipse Add JVM dialog (see Figure 7). Note while the fields of this dialog refer to the a JRE environment our objective is to specify the location of a full JDK as the runtime environment, not the default JRE provided by Sun Microsystems. Do the following:
- Enter the JRE name
- For the "JRE home directory" field select Browse... to open a File Browser dialog (not shown)
- In the File Browser dialog navigate to the root directory of your JDK installation directory, not the JRE directory it contains. Select this directory in the File Browser and enter OK to return to the Add JVM dialog
- The Add JVM dialog's remaining fields should be prepopulated with default values derived from the value of the "JRE home directory" field
- Select OK to close the Add JVM dialog and return to the Tomcat 5 JDK preference page
Figure 7. Add JVM dialog
Now select the newly configured JDK from the JDK drop-down list. Figure 8 illustrates selecting the newly defined JDK from Step-3a.
Figure 8. Tomcat 5 JDK preference page with valid JDK selection
Step-4: Accept changes
Lastly, select OK to accept the changes and complete the configuration.
Note: Your application server may require additional configuration steps. Use the additional settings pages and paths to customize the connector's launch configuration as needed. Please review all settings as they will affect the proper launch and operation of your application server.








