Modifying the JNDI Start Files
* 
You only need to create a start file if you are using the adapter out of process.
The following JNDI start files are installed with Windchill:
startjndi.bat
startjndi.sh
You can use these files to start the JNDI adapter out of process. The files are located in the bin/infoengine directory where Windchill is installed.
Each start file executes another file named runieservice to start the service. The start files also use the ie.properties file as the value for the -DpropFile parameter on the Java start command.
Customizing the Installed Start File
On a Windows system, the installation generates a file similar to the following to start the JNDI adapter:
set JAVA_HOME=<javaHome>
set WEB_APP_HOME=<webAppHome>

set IEPROPFILE=<propUrl>
set IEMYNAME=<domain>.jndiAdapter-oop
set IENAMINGSERVICENAME=<domain>.namingService
set IE_OPTS=-Xms64m -Xmx64m "-DpropFile=%IEPROPFILE%"
"-DmyName=%IEMYNAME%"
"-DnamingServiceName=%IENAMINGSERVICENAME%"
-Dlog4j.configurationFile=WEB-INF/log4jJNDI-oop.properties

%JAVA_HOME%\bin\java -cp %WEB_APP_HOME%/codebase/WEB-INF/lib/ieWeb.jar
"-Dcom.infoengine.javaCmd=%JAVA_HOME%/bin/java"
"-Dcom.infoengine.javaOptions=%IE_OPTS%"
"-Dcom.infoengine.webAppHome=%WEB_APP_HOME%" com.infoengine.Loader
com.infoengine.jndi.JNDIAdapter
Configure the file with information specific to your site:
Replace jndiAdapter-oop with the service class name for the JNDI LDAP entry you created.
Add the -Dlog4j.configuration startup property (this is not added automatically during the installation process), and update its value as appropriate to the log4j configuration that you have created.
For more information on log4j logging settings, see Managing Logging.
In the generated file, all of the variables contain actual values determined during the installation process:
<javaHome>
Specifies the location of the installed Java SE Development Kit (JDK).
<webAppHome>
Specifies the location of the Windchill Info*Engine installation directory.
<propUrl>
Specifies the location of the ie.properties file.
<domain>
Specifies the host domain where Info*Engine is installed.
For more information on modifying start files, see the Windchill Installation and Configuration Guide.
¿Fue esto útil?