Hi,
I have 2 webservices and I need them to run on the same port. But with the
attached spring configuration I get the error 'java.net.BindException:
Address already in use: bind'. If I change the port number of
DirectoryService to 8193 then it works. How can I run multiple webservices
on the same port?
Cheers,
Hari.

  <sm:container
        id="jbi"
        monitorInstallationDirectory="false">

    <sm:activationSpecs>
      <sm:activationSpec>
        <sm:component>
          <jsr181:component>
            <jsr181:endpoints>
              <jsr181:endpoint
                 annotations="jsr181"
                 service="xfire:OrderService"
                 endpoint="OrderService"
                 pojo="#orderService">
              </jsr181:endpoint>
            </jsr181:endpoints>
          </jsr181:component>
        </sm:component>
      </sm:activationSpec>

      <sm:activationSpec>
        <sm:component>
          <http:component>
            <http:endpoints>
              <http:endpoint
                service="xfire:OrderService"
                endpoint="OrderService"
                targetService="xfire:OrderService"
                role="consumer"
                locationURI="http://localhost:8192/OrderService/";
                defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                soap="true"/>
            </http:endpoints>
          </http:component>
        </sm:component>
      </sm:activationSpec>

      <sm:activationSpec>
        <sm:component>
          <jsr181:component>
            <jsr181:endpoints>
              <jsr181:endpoint
                 annotations="jsr181"
                 service="xfire:DirectoryService"
                 endpoint="DirectoryService"
                 pojo="#directoryService">
              </jsr181:endpoint>
            </jsr181:endpoints>
          </jsr181:component>
        </sm:component>
      </sm:activationSpec>
      
      <sm:activationSpec>
        <sm:component>
          <http:component>
            <http:endpoints>
              <http:endpoint
                service="xfire:DirectoryService"
                endpoint="DirectoryService"
                targetService="xfire:DirectoryService"
                role="consumer"
                locationURI="http://localhost:8192/DirectoryService/";
                defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                soap="true"/>
            </http:endpoints>
          </http:component>
        </sm:component>
      </sm:activationSpec>  
    </sm:activationSpecs>

  </sm:container>
-- 
View this message in context: 
http://www.nabble.com/Running-multiple-jsr181-webservices-on-the-same-port-tf2064026.html#a5686205
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to