Return-Path: X-Original-To: apmail-tuscany-user-archive@www.apache.org Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BE9E9EA6 for ; Thu, 24 Nov 2011 14:28:33 +0000 (UTC) Received: (qmail 66720 invoked by uid 500); 24 Nov 2011 14:28:33 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 66694 invoked by uid 500); 24 Nov 2011 14:28:33 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Received: (qmail 66687 invoked by uid 99); 24 Nov 2011 14:28:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 14:28:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simonslaws@googlemail.com designates 209.85.160.181 as permitted sender) Received: from [209.85.160.181] (HELO mail-gy0-f181.google.com) (209.85.160.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 14:28:29 +0000 Received: by ghrr13 with SMTP id r13so3455806ghr.26 for ; Thu, 24 Nov 2011 06:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UIuXFek5hB3ZuKNC9SOFTDDmPpbF0pyWXteP1Y+Xepw=; b=KAmpJBfDqwxhFeQvHpJpEisBPhjAyGHkW9XiPBdazRfgx18yyICMQ/FQQyjrP8OpqO EBMH7iJk+kz+LCJuBQZc15ZLkWFxIapTMXDx1kztaa4G+cbwPI0qabAfisWqfzDFNoaz 16CEJJs+OmS3qvN3Ru9xOyqeH0NcAgxYBOo0Y= MIME-Version: 1.0 Received: by 10.182.207.67 with SMTP id lu3mr9551561obc.79.1322144888243; Thu, 24 Nov 2011 06:28:08 -0800 (PST) Received: by 10.182.11.105 with HTTP; Thu, 24 Nov 2011 06:28:08 -0800 (PST) In-Reply-To: <4ECE22FC.3020003@aps-prevoyance.fr> References: <4ECE22FC.3020003@aps-prevoyance.fr> Date: Thu, 24 Nov 2011 14:28:08 +0000 Message-ID: Subject: Re: Default WS port - Tuscany 2 runtime From: Simon Laws To: user@tuscany.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Thu, Nov 24, 2011 at 10:57 AM, Antonio De Berardis wrote: > Hi, > > I have a question about web service binding, for example: > > > =A0=A0=A0 > =A0=A0=A0 > =A0=A0=A0 =A0=A0=A0 > =A0=A0=A0 > > > When I deploy this component in a webapp on Tomcat, It publishes a servic= e > at http://localhost:8085/HelloworldComponent/Helloworld. The > =93localhost:8085=94 seems to be a default value. > > I actually have lots of Tuscany based webapps with many components in the= m, > therefore all publishing their webservices at http://localhost:8085/... > > One way to change that is to set the uri attribute in binding.ws. , which > means that if I want to relocate my webservices in the future I will have= to > change the URI in each and every one of my webapps. > > Is there a way to set a default "Host:Port"? I'm using the tuscany.war > deployed on Tomcat, is there may be a way to do this in the Tomcat=92s co= nf or > in Tuscany.war? > Or if not, what do you think is better to do? Let binding.ws with no URI = or > define it in each WS? Am I missing something? Are you planning to change > this behavior? > > Best Regards. > > Antonio > Hi Antonio I assume that you're embedding Tuscany in the WAR and configuring the TuscanyServletFilter. I think in a webapp Tuscany just adopts the host:port configuration of the host Tomcat installation. If you're running outside of Tomcat from a Tuscany launcher you can configure the default port that gets used when fluffing up Tomcat or Jetty etc instances by providing default binding configuration to the node. But I don't think that's what you're doing. Regards Simon --=20 Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com