Changing the Port Location in a Hydra Project

Article ID: 1221
Last updated: 15 Sep, 2009
Article ID: 1221
Last updated: 15 Sep, 2009
Revision: 1
Views: 1850
Posted: 04 Feb, 2008
by --
Updated: 15 Sep, 2009
by

Problem


Most likely you have created your Hydra project using localhost:8090, as shown in the tutorials. However, you may find it necessary to change the port location.  This article provides instructions on the modifications to the project that are necessary to implement this change.


Action


For the puposes of this article we will change the port location in the DemoProject tutorial from localhost:8090 to localhost:8020.  There are up to four possible locations where changes will need to be made:

 

1. In DemoProject.wsdl change the location in the service element to 8020
  <service name='DemoProjectService'>

    <port name='DemoProjectPort' binding='tns:DemoProjectBinding'>

      <soap:address location='http://localhost:8020/DemoProject/DemoProjectService'/>

    </port>

  </service>

 

2. In <Hydra install>/conf/rwagent.xml, change the port for the http connector. 

  <rwsf:connector name="HTTP/1.1"

                  class="rwsf_transport_http30.createHttpConnectorImp"

                  handlerChain="http">

    <rwsf:property name="accepter-threads" value="2"/>

    <rwsf:property name="thread-pool-min" value="15"/>

    <rwsf:property name="thread-pool-max" value="50"/>

    <!-- <rwsf:property name="host" value="localhost"/> -->

    <rwsf:property name="port" value="8020"/>

    <rwsf:property name="request-backlog" value="10"/>

    <rwsf:property name="request-buffersize" value="4096"/>

    <rwsf:property name="request-timeout" value="30000"/>

  </rwsf:connector>

 

3. In DemoProject/build-import.xml change the port:
<property name='server.port' value='8020'/>

 

4. If you are using the generated client and have already modified it, you may also need to change the location in DemoProjectPortClient.cpp.

  if (argc < 2) {

    location = "http://localhost:8020/DemoProject/DemoProjectService";

Please note that if you are generating a new client after changing the port in the DemoProject.wsdl, the DemoProjectPortClient.cpp will also be generated with the new port location.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 1221
Last updated: 15 Sep, 2009
Revision: 1
Views: 1850
Posted: 04 Feb, 2008 by --
Updated: 15 Sep, 2009 by

Others in this category