Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8134E17BFD for ; Fri, 31 Oct 2014 08:41:40 +0000 (UTC) Received: (qmail 19695 invoked by uid 500); 31 Oct 2014 08:41:40 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 19636 invoked by uid 500); 31 Oct 2014 08:41:40 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 19626 invoked by uid 99); 31 Oct 2014 08:41:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 08:41:39 +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 lahirus@wso2.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 08:41:14 +0000 Received: by mail-qa0-f54.google.com with SMTP id u7so4859936qaz.41 for ; Fri, 31 Oct 2014 01:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ze99CsuzHZfechZ9g9qve2CQq4072ne2fZWT/xVhTB0=; b=TsR5t3SAmcwEWL7CY4Ro0lm+vrz7MJ6yf0J4Gf/78q4fZ6VX00Wj7+kUyP3j5wmyp7 7ENayPPb+a3bIIhE8VJY5ELVVTBDZSXMChicGm0/knqs47j1zjTKioh+XwilJr+Wft/q l2olteMLXZgcXCT30Duc8RV8dymTIX5gqo0WI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=ze99CsuzHZfechZ9g9qve2CQq4072ne2fZWT/xVhTB0=; b=Scpy+g3DSU2ZfhKBPiN/Iy9D850AUlMloYs28+ztaC9iIXrWv76v7sue7eEQ62fDeT Bh/qNamUpw7gin0DRZE/5MIkKMTCYxWNfN4C4/ZgJiMfFRg4DNJ9kKl3VEEWcySIgt89 T1AbixYiqjFCQhtv+6AXFrtCFgx/MU1Vp4sVuNugYTXeMjgFkNYMf2GIxi3IuhwuVlRN jzjbApQD3dcvc3xhiukBU1s6gwNAEu+up42ULT5r6Rqi4A1BYQdGyGqipfCdth8qYI86 r3Db29CP0JPoUV4o54cwpUUWsYs6QMcImtKL9F4h3dtwl4yXen28ADBlw20404/BtvPo ipfw== X-Gm-Message-State: ALoCoQkClfPOjoVdin2YbCqN1LiECzpbTYosZPqXnuSm6tIf4wX5Ax/OU1X1DDv19pP3pM5PoU1K X-Received: by 10.224.74.135 with SMTP id u7mr15557250qaj.41.1414744738191; Fri, 31 Oct 2014 01:38:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.221.171 with HTTP; Fri, 31 Oct 2014 01:38:27 -0700 (PDT) In-Reply-To: References: From: Lahiru Sandaruwan Date: Fri, 31 Oct 2014 14:08:27 +0530 Message-ID: Subject: Re: Invoking osgi services when Stratos is running in single JVM mode To: dev Content-Type: multipart/alternative; boundary=089e012951009177090506b3ed8c X-Virus-Checked: Checked by ClamAV on apache.org --089e012951009177090506b3ed8c Content-Type: text/plain; charset=UTF-8 On Fri, Oct 31, 2014 at 2:02 PM, Nirmal Fernando wrote: > I'm more concerned about having to write duplicated code. IMO we need to > see whether it's worth to have two modes before start implementing it. Wdyt? > Where would be the duplicated code? @client? > > On Fri, Oct 31, 2014 at 9:27 AM, Lahiru Sandaruwan > wrote: > >> >> >> On Fri, Oct 31, 2014 at 1:47 PM, Nirmal Fernando >> wrote: >> >>> Then we would have to have 2 modes of calling these services, which will >>> introduce lot of complexity ? >>> >> >> Two modes, but it would be simple check of whether the OSGi service is >> enabled. >> >> >>> >>> On Fri, Oct 31, 2014 at 9:13 AM, Lahiru Sandaruwan >>> wrote: >>> >>>> Hi, >>>> >>>> $subject can replace the service calls among Autoscaler, Cloud >>>> controller, and Stratos Manager. >>>> This will increase the efficiency. >>>> >>>> This may be a good exercise for a new comer to the community. Jira [1] >>>> tracks it. >>>> >>>> [1] https://issues.apache.org/jira/browse/STRATOS-935 >>>> >>>> Thanks. >>>> >>>> -- >>>> -- >>>> Lahiru Sandaruwan >>>> Committer and PMC member, Apache Stratos, >>>> Senior Software Engineer, >>>> WSO2 Inc., http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>> >>>> >>> >>> >>> -- >>> Best Regards, >>> Nirmal >>> >>> Nirmal Fernando. >>> PPMC Member & Committer of Apache Stratos, >>> Senior Software Engineer, WSO2 Inc. >>> >>> Blog: http://nirmalfdo.blogspot.com/ >>> >> >> >> >> -- >> -- >> Lahiru Sandaruwan >> Committer and PMC member, Apache Stratos, >> Senior Software Engineer, >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ >> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >> >> > > > -- > Best Regards, > Nirmal > > Nirmal Fernando. > PPMC Member & Committer of Apache Stratos, > Senior Software Engineer, WSO2 Inc. > > Blog: http://nirmalfdo.blogspot.com/ > -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 --089e012951009177090506b3ed8c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Fri, Oct 31, 2014 at 2:02 PM, Nirmal Fernando <= nirmal070125@gm= ail.com> wrote:
I'm more concerned about having to write duplicated code. IMO we = need to see whether it's worth to have two modes before start implement= ing it. Wdyt?

Where would be the dupl= icated code? @client?=C2=A0

On Fri, Oct 31, 2014 at 9:27 AM, Lahiru Sandaruwan <lahirus@= wso2.com> wrote:


On Fri, Oct 31, 2014 at 1:47 PM, Nirmal Fernando <nirmal070125@gmai= l.com> wrote:
Then we would have to have 2 modes of calling these services, which wil= l introduce lot of complexity ?

Two modes, but it would be simple check of whether the OSGi service is en= abled.
=C2=A0

On Fri, Oct = 31, 2014 at 9:13 AM, Lahiru Sandaruwan <lahirus@wso2.com> wro= te:
Hi,

$subject can replace the service calls among Autoscaler, Cloud controlle= r, and Stratos Manager.
This will increase the efficiency.=C2=A0<= /div>

This may be a good exercise for a new comer to the= community. Jira [1] tracks it.


Thanks.

-- =
--
Lahir= u Sandaruwan
Committer and= PMC member, Apache Stratos,
Senior=C2=A0Software Engineer,
WSO2 Inc.= , http://wso2.com
<= div>lean.enterprise.middleware
email: lahirus@wso2.= com=C2=A0blog: http://lahiruwrites.blogspot.com/
linked-in: http= ://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146




--
=
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Me= mber & Committer of Apache Stratos,
Senior Software Engineer, = WSO2 Inc.




--
--
Lahiru Sandaruwan
Committ= er and PMC member, Apache Stratos,
Senior=C2=A0Software Engineer,
WSO= 2 Inc., http://wso2.com



--
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & C= ommitter of Apache Stratos,
Senior Software Engineer, WSO2 Inc.
=



--
=
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior=C2=A0Software = Engineer,
WSO2 Inc., http:= //wso2.com
--089e012951009177090506b3ed8c--