Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-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 2F19610397 for ; Sun, 2 Jun 2013 18:18:14 +0000 (UTC) Received: (qmail 35601 invoked by uid 500); 2 Jun 2013 18:18:13 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 35530 invoked by uid 500); 2 Jun 2013 18:18:12 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 35522 invoked by uid 99); 2 Jun 2013 18:18:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jun 2013 18:18:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shameerainfo@gmail.com designates 209.85.220.182 as permitted sender) Received: from [209.85.220.182] (HELO mail-vc0-f182.google.com) (209.85.220.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jun 2013 18:18:06 +0000 Received: by mail-vc0-f182.google.com with SMTP id gf12so2166492vcb.13 for ; Sun, 02 Jun 2013 11:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=/SAlzc6Y+9zMdB54GNZXyxYeiBuuu58ft5/Z8hGHQu8=; b=Ovdvo8C3JoT4BVUWyNvmbpxcWdwSLVVwlGxxQc8gDSubP5Vr02hZeA9OjLMMVhHg7s Eumyfg+5VVkPC7TvgZUIpTMpFhRMvLLazKojMJRyNcZytN4+P324Vx33qspmwJy1if30 yn9JI11Ribd7CNVSmOhZVgfnLx40u15NjI4sFWVorUah08e/2Gr7uwyYTPIzFBnG0eYM 4t+9da4/pcljrADJ+1thCFdXuTgzhPiafS1lPMzoLrkmAV/WY2/STm6AZS+kRVvxBwxp flyX0lp2ZklEcGLZZGgyXPmpGDZM7BI7+DPqsDnMC2czRygLGvNDXX0c4hJ0+Vt5fHg1 XDOA== X-Received: by 10.52.36.115 with SMTP id p19mr13332054vdj.8.1370197065620; Sun, 02 Jun 2013 11:17:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.8.81 with HTTP; Sun, 2 Jun 2013 11:17:25 -0700 (PDT) In-Reply-To: <92901BDF-B6F9-48B4-9290-FA76E65DF312@me.com> References: <92901BDF-B6F9-48B4-9290-FA76E65DF312@me.com> From: Shameera Rathnayaka Date: Sun, 2 Jun 2013 23:47:25 +0530 Message-ID: Subject: Re: Programmatically changing the Axis2 http port To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=20cf307cfd8c5e66c904de2fdd8f X-Virus-Checked: Checked by ClamAV on apache.org --20cf307cfd8c5e66c904de2fdd8f Content-Type: text/plain; charset=ISO-8859-1 Hi Ingolf, Transport listeners are initiated inside the org.apache.axis2.engine.ListenerManager#init method. you can change transport parameters by using below line of code here. * configctx.getAxisConfiguration().getTransportsIn().get("http").getParameter("port").setValue(8090); * // here i have set http listener port to 8090 You can access Axis Configuration from configuration context, Then you can retrieve all transportIn and transportOut configurations and manipulate them according to your need. Cheers, Shameera. On Sun, Jun 2, 2013 at 7:37 AM, Ingolf Krueger wrote: > Hi there -- > > I am trying to use Axis2 in embedded mode from within Clojure, and want to > programmatically change the http port at which my services are presented so > as to be able to run multiple independent Axis2 servers on the same box. I > understand that this could be accomplished using axis2.xml, but I'd prefer > to accomplish it via code. > > I have searched the archives and documents, but was unable to locate a > suitable example/tutorial to study. > > Any suggestions on where I could look would be highly appreciated! > > Thanks, and best regards, > Ingolf > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org > For additional commands, e-mail: java-user-help@axis.apache.org > > -- Best Regards, Shameera Rathnayaka. email: shameera AT apache.org , shameerainfo AT gmail.com Blog : http://shameerarathnayaka.blogspot.com/ --20cf307cfd8c5e66c904de2fdd8f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi = Ingolf,

Transport listene= rs are initiated inside the org.apache.axis2.engine.ListenerManager#init me= thod. you can change transport parameters by using below line of code here.=
configctx.getAxisConfiguration().getTranspo= rtsIn().get("http").getParameter("port").setValue(8090)= ; =A0// here i have set http listener port to 8090

You can access Axis Configuration fr= om configuration context, Then you can retrieve all transportIn and transpo= rtOut configurations and manipulate them according to your need.

Cheers,=
Shameera.


On Sun, Jun 2, 2013 at 7:37 AM, = Ingolf Krueger <spihk@me.com> wrote:
Hi there --

I am trying to use Axis2 in embedded mode from within Clojure, and want to = programmatically change the http port at which my services are presented so= as to be able to run multiple independent Axis2 servers on the same box. = =A0I understand that this could be accomplished using axis2.xml, but I'= d prefer to accomplish it via code.

I have searched the archives and documents, but was unable to locate a suit= able example/tutorial to study.

Any suggestions on where I could look would be highly appreciated!

Thanks, and best regards,
Ingolf


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org




--
Best Regards= ,
Shameera= Rathnayaka.

email: shameer= a AT apache.org , shame= erainfo AT gmail.com
Blog : http://shameerarathna= yaka.blogspot.com/
--20cf307cfd8c5e66c904de2fdd8f--