Installation guide
23
Chapter 7
Setting up Pramati Server as a Service
set.ps_root=D:\PServer411082
#Change the node name to install another server instance as a service.
#The service will be registered with name PramatiServer<node> (PramatiServer-
default for the following setting)
set.node=default
# Java Application
wrapper.java.command=%JAVA_HOME%/bin/java
#wrapper.java.command=C:/jdk1.3.1_03/bin/java.exe
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
# Application parameters. Add parameters as needed starting from 1
# Param 1. Pramati Server Main class
wrapper.app.parameter.1=com.pramati.Server
wrapper.app.parameter.2=-node %node%
wrapper.app.parameter.3=-redirect
........
........
To start the service with some pre-defined parameters, the configuration file can be edited for:
• Configuring JVM Parameters
• Configuring Classpath Parameters
• Configuring Application Parameters
Configuring JVM Parameters
The following entry in the configuration file sets the JVM options. More lines can be added to suit
your requirement:
wrapper.java.additional.1=-server
wrapper.java.additional.2=-Dinstall.root=%ps_root%/server
wrapper.java.additional.3=-Djava.security.policy=%ps_root%/server/lib/pra-
mati/pramati.java.policy
wrapper.java.additional.4=-Djava.security.auth.policy=%ps_root%/server/lib/
pramati/pramati.jaas.policy
wrapper.java.additional.5=-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLRead-
erAdapter
wrapper.java.additional.6=-Dorg.xml.sax.driver=org.apache.crim-
son.parser.XMLReaderImpl
To add more parameters to the JVM options, append another line to this list. Note that the entries
below follow a pattern, such as
wrapper.java.classpath.<n> where n is incriminated starting