I discovered how to do this and I thought others might find this useful.
I have a server with 4 IP Address and localhost.  I only wanted the
JRun Web Server to listen to port 8300 on 1 IP Address and localhost.

168.192.1.1
168.192.1.2
168.192.1.3
168.192.1.4
127.0.0.1

So I thought I would try to edit the jrun.xml file and add a
bindAddress with 2 IP addresss:

  <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="bindAddress">127.0.0.1|168.192.1.4</attribute>
    <attribute name="port">8311</attribute>
    <attribute name="threadWaitTimeout">300</attribute>
    <attribute name="timeout">300</attribute>
  </service>

Well, this did not work and it gave me errors when the server started up.

So I duplicated the entry in the jrun.xml file like this:

  <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="bindAddress">127.0.0.1</attribute>
    <attribute name="port">8311</attribute>
    <attribute name="threadWaitTimeout">300</attribute>
    <attribute name="timeout">300</attribute>
  </service>
  <service class="jrun.servlet.http.WebService" name="WebService2">
    <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="bindAddress">168.192.1.4</attribute>
    <attribute name="port">8311</attribute>
    <attribute name="threadWaitTimeout">300</attribute>
    <attribute name="timeout">300</attribute>
  </service>

I changed the service name of the second entry to "WebService2" are
restarted the JRun/cfusion instance.  What do you know, it worked!!

Enjoy,

-- 
Thanks,
Troy

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242718
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to