Hi
I have a service running in Icegrid 3.4.1 on Windows 2003. The Path for the system has been changed to point to a separate (non-system) version of Java and the box rebooted, but the java executable being run is the system version.
System Environment variables
JAVA_HOME=F:\Aurora\Java
PATH=F:\Aurora\Java\bin;C:\tibco\tibrv\8.2\bin;...
Using ProcessExplorer the environment variables for the icegridnode.exe process are correctly set, but the properties in the log file for the service have java.home => C:\Program Files (x86)\Java\jre6.
Opening a command prompt as the same user and running a main method which dumps the properties from the jvm, has the correct java.home => F:\Aurora\Java\jre
Please could you tell me how to get icegridnode to use a specific non-system java version.
Thanks Nim
<icegrid>
<application name="QlibPricingServiceApp">
<server-template id="QlibPricingServer">
<parameter name="index" />
<server id="QlibPricingService-${index}" exe="java" activation="always"
pwd="F:/Aurora/QlibPricingService/QlibPricingService-1785-dev-LON">
<option>-Xms256m</option>
<option>-Xmx256m</option>
<option>-Dconfig.file=./config/properties/LON/dev/config.properties</option>
<option>-Dapplication.name=QlibPricingService</option>
<option>com.rbccm.aurora.pricing.QlibPricingServic eApp</option>
<env>CLASSPATH=./config;./lib/*;%CLASSPATH%</env>
<env>QLIB_HOME=./config/qlib</env>
<env>PATH=./lib;%PATH%</env>
<adapter name="QlibPricingServiceModule" endpoints="tcp" replica-group="QlibPricingServiceAdapter"/>
<property name="Identity" value="QlibPricingServiceModule" />
<property name="Ice.Plugin.MyLogger" value="com.rbccm.aurora.pricing.ice.log.Log4jIceLo ggerPluginFactory" />
</server>
</server-template>
<replica-group id="QlibPricingServiceAdapter">
<load-balancing type="round-robin" />
<object identity="QlibPricingServiceModule"
type="::QlibPricingServiceModule::QlibPricingServi ce"/>
</replica-group>
<node name="AuroraServicesNode1">
<server-instance template="QlibPricingServer" index="1" />
</node>
</application>
</icegrid>

Reply With Quote