Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 415EE8CEC for ; Tue, 30 Aug 2011 16:29:21 +0000 (UTC) Received: (qmail 60360 invoked by uid 500); 30 Aug 2011 16:29:20 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 60258 invoked by uid 500); 30 Aug 2011 16:29:19 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 60251 invoked by uid 99); 30 Aug 2011 16:29:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 16:29:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.57] (HELO smtp102.prem.mail.sp1.yahoo.com) (98.136.44.57) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 30 Aug 2011 16:29:13 +0000 Received: (qmail 17041 invoked from network); 30 Aug 2011 16:28:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:Mime-Version:Content-Type:Subject:Date:In-Reply-To:To:References:Message-Id:X-Mailer; b=PSeLcNIXrhejBszR0rKX6dbl4f1APJaLS90c2wfKHiRhzAt3J0Zz86+0m/s1IXkZYi5W3Z4QbFeUF/TDk1dkTOSz5NSIXevyIbyyEUl0w5Lkx8E0SEQIQQ/i7qbtKjHTAVSlY+CIE/ympBS0KWbfl3W7eeO/9nwN5CVUJ5HDUQo= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1314721732; bh=+A4mjpb61HFxUf52cUm/y6+2iOksU1fgZ/DAL1Z4lhE=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:Mime-Version:Content-Type:Subject:Date:In-Reply-To:To:References:Message-Id:X-Mailer; b=1aPK1ju4nzw8iu8xaxN8eyoexe9Fz7NODw0w+mJri0g+sZel2vKNoyWvo8jJlXqUxrcyqUhHNiHAACNinFiC0FETphX3BY4A8nyhBTzPNFGYJgmiiEjcaZ2j6qPxIjj3qf35WnncusZBT9R5IE2R2ugT83bItfkg85EGIwb1P6A= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: n_ODvNYVM1n59epAEpbjJUqdjE63FSTo65h4nCOsdw0JHLh oMsEfyQ7Cx5jsjcMemEfTtRSiGfbhlNRIJmPYcNVIlxKcO1oIrSHk9coY4FW DaUTA04A3iZz.bDMqApWEbo_BrCX616FaN08Bizwm0dJCkVFY3tQtZYBkuim 7sFjQq7flLKy1i7DJvin4o3ccBV5HpyMaLD8XEo6H9qW4vRb6LeVYilGK3N7 iFD5iGImS40t5WQQ2Lfeb1u11OX87DfhGrLj9nJ2rQ7Kc7ZF81islIkojS4m cckpXiDIyJDRJBkapMZYN_2CEvYPJ1a7bqn0UmXjVjAHqgDvyQN.8KUR0DDL zojp.oZcNKtIHUdbL34rAAee4mrKYyjx4RsFjHeSJBnter.HW..cvEpnrYhz u3HxW32jj9mqyQTcPno_B_aRUzLm0w1WUNuSGVZ08nwglGJpyxiJxMcQgIbu VlBgOHhqI6yymW8Im4MAr2UhZ.s0- X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- Received: from [10.0.1.4] (david_jencks@76.76.148.215 with plain) by smtp102.prem.mail.sp1.yahoo.com with SMTP; 30 Aug 2011 09:28:52 -0700 PDT From: David Jencks Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/alternative; boundary=Apple-Mail-18--740402494 Subject: Re: PortOffset for o.a.karaf.shell.ssh Date: Tue, 30 Aug 2011 09:28:50 -0700 In-Reply-To: To: dev@geronimo.apache.org References: Message-Id: X-Mailer: Apple Mail (2.1084) --Apple-Mail-18--740402494 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Rex, I don't have a good idea how to do something like this in karaf. It = would have to work through config admin since any service opening a = socket should get the port from config admin (the shell does). So I = think we would need some kind of config admin administration tool that = would shift all the port values by some constant. I haven't looked into = anything about how to implement something like this. =20 thanks david jencks On Aug 30, 2011, at 2:29 AM, Rex Wang wrote: > Hi Devs >=20 > I send this mail to only Geronimo mailing list because I hope we could = discuss it first before we request this ability in karaf. >=20 > Currently, in Geronimo 3.0, all the port/portoffset settings have been = unified in config-substitutions.properties like before, except the = settings for o.a.karaf.shell.ssh. > karaf.shell.ssh can help user access our shell from remote through the = port 8101. In Geronimo startup script, by setting = CONSOLE_OPTS=3D-Dkaraf.startLocalConsole=3Dtrue = -Dkaraf.startRemoteShell=3Dtrue, we can enable this feature. It = retrieves the settings in /etc/org.apache.karaf.shell.cfg from config = admin service.=20 > However, it did not define the port offset value. If user wanna start = 2 server instances in one machine, he has to manually set the portoffset = in config-substitutions and also modify the "sshPort" in the = /etc/org.apache.karaf.shell.cfg. Otherwise, the port 8101 will only work = for the server instance that start later. >=20 > The question is, if we want karaf add the ability to set the port = offset, how do we hope them implement it? They indeed can simply add a = setting in org.apache.karaf.shell.cfg named "sshPortoffset" to do this. = But our user still need change 2 places if they want to change the = portoffset. Shall we persuade them to add the ability to load the = settings from a location(i.e. var/config-substitutions.properties for = us) or there are better practices? >=20 > David, IIRC, you ever mentioned you hope get rid of the = config-substitutions in future geronimo. Then how to unify the = portoffset settings, that is, changing in one place will make all = components take the effect? >=20 > Any insights? >=20 > thanks, > --=20 > Lei Wang (Rex) > rwonly AT apache.org --Apple-Mail-18--740402494 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Rex,

I don't have a good idea how to do something = like this in karaf.  It would have to work through config admin = since any service opening a socket should get the port from config admin = (the shell does).  So I think we would need some kind of config = admin administration tool that would shift all the port values by some = constant.  I haven't looked into anything about how to implement = something like this. =  

thanks
david = jencks

On Aug 30, 2011, at 2:29 AM, Rex Wang = wrote:

Hi Devs

I send this mail to only Geronimo mailing = list because I hope we could discuss it first before we request this = ability in karaf.

Currently, in Geronimo 3.0, all the = port/portoffset settings have been unified in = config-substitutions.properties like before, except the settings for = o.a.karaf.shell.ssh.
karaf.shell.ssh can help user access our shell from = remote through the port 8101. In Geronimo startup script, by setting = CONSOLE_OPTS=3D-Dkaraf.startLocalConsole=3Dtrue = -Dkaraf.startRemoteShell=3Dtrue, we can enable this feature. It = retrieves the settings in /etc/org.apache.karaf.shell.cfg from config = admin service.
However, it did not define the port offset value. If user wanna start 2 = server instances in one machine, he has to manually set the portoffset = in config-substitutions and also modify the "sshPort" in the = /etc/org.apache.karaf.shell.cfg. Otherwise, the port 8101 will only work = for the server instance that start later.

The question is, if we want karaf add the ability to set the port = offset, how do we hope them implement it? They indeed can simply add a = setting in org.apache.karaf.shell.cfg named "sshPortoffset" to do this. = But our user still need change 2 places if they want to change the = portoffset. Shall we persuade them to add the ability to load the = settings from a location(i.e. var/config-substitutions.properties for = us) or there are better practices?

David, IIRC, you ever mentioned you hope get rid of the = config-substitutions in future geronimo. Then how to unify the = portoffset settings, that is, changing in one place will make all = components take the effect?

Any insights?

thanks,
--
Lei Wang (Rex)
rwonly AT apache.org

= --Apple-Mail-18--740402494--