Greg's Blog

helping me remember what I figure out

JRun Standalone Server

| Comments

Along similar lines to the Flas Remoting set up you can find information on the setup of the built-in webserver that is used by JRun here: {Install Path}\JRun4\servers\{instance Name}\SERVER-INF\jrun.xml. The section to look out for will look something like this:

<!– ========================================================= –>
<!– This is the built-in JRun Web Server –>
<!– ========================================================= –>
<service class=”jrun.servlet.http.WebService” name=”WebService”>
<attribute name=”activeHandlerThreads”>25</attribute>
<attribute name=”backlog”>500</attribute>
<attribute name=”interface”>*</attribute>
<attribute name=”keepAlive”>false</attribute>
<attribute name=”maxHandlerThreads”>1000</attribute>
<attribute name=”minHandlerThreads”>1</attribute>
<attribute name=”port”>8101</attribute>
<attribute name=”threadWaitTimeout”>20</attribute>
<attribute name=”timeout”>300</attribute>
</service>
<!– Uncomment this service to use SSL with the JRun Web Server
Note that you MUST create your own keystore before using this service
<service class=”jrun.servlet.http.SSLService” name=”SSLService”>
<attribute name=”port”>9100</attribute>
<attribute name=”keyStore”>{jrun.rootdir}/lib/keystore</attribute>
<attribute name=”keyStorePassword”>changeit</attribute>
<attribute name=”trustStore”>{jrun.rootdir}/lib/trustStore</attribute>
<attribute name=”socketFactoryName”>jrun.servlet.http.JRunSSLServerSocketFactory</attribute>
</service>
–>

Information on the external web server configuration can also be found in this file and looks something like this:

<!– ========================================================= –>
<!– This service is for communicating with a native (IIS, Apache, Netscape) –>
<!– web server. –>
<!– To run this service in a secure mode via SSL, set the keyStore, –>
<!– keyStorePassWord, trustStore and socketFactoryName attributes. –>
<!– ========================================================= –>
<service class=”jrun.servlet.jrpp.JRunProxyService” name=”ProxyService”>
<attribute name=”activeHandlerThreads”>25</attribute>
<attribute name=”backlog”>500</attribute>
<attribute name=”deactivated”>false</attribute>
<attribute name=”interface”>*</attribute>
<attribute name=”maxHandlerThreads”>1000</attribute>
<attribute name=”minHandlerThreads”>1</attribute>
<attribute name=”port”>51003</attribute>
<attribute name=”threadWaitTimeout”>20</attribute>
<attribute name=”timeout”>300</attribute>
<!–
<attribute name=”keyStore”>{jrun.rootdir}/lib/keystore</attribute>
<attribute name=”keyStorePassword”>changeit</attribute>
<attribute name=”trustStore”>{jrun.rootdir}/lib/trustStore</attribute>
<attribute name=”socketFactoryName”>jrun.servlet.jrpp.JRunProxySSLServerSocketFactory</attribute>
–>
<attribute name=”mapCheck”>0</attribute>
</service>