We process carbon.xml only when we launch the OSGi framework. I.e inside
the Carbon base bundle. But we need workerNode property before the launch
the OSGi framework. I.e. inside the Carbon main jar.

So IMV easiest option would be the put this property in the server startup
script files. Lets keep the portOffset property as it is in the carbon.xml

Thanks,
Sameera.


On Tue, Mar 4, 2014 at 7:48 AM, Ashansa Perera <[email protected]> wrote:

> +1 for adding this to carbon.xml to avoid the human errors, since passing
> this param can be easily missed by someone who is not used to it. And
> supporting both ways ( if not given as command line input, take the
> configured value ) would be great.
>
> And as like we have the logs when applying patch changes ( which is really
> helpful IMO ), logging the profile name would too help a lot.
>
>
> On Mon, Mar 3, 2014 at 11:41 PM, Supun Malinga <[email protected]> wrote:
>
>> Hi,
>>
>> +1.
>> @Kasung AFAIR you need to update this in code level (in carbon.util
>> package) as well. Currently I don't think its written to parse the false
>> argument..
>>
>> thanks,
>>
>>
>> On Mon, Mar 3, 2014 at 1:01 PM, Shameera Rathnayaka <[email protected]>wrote:
>>
>>> Hi All,
>>>
>>> If we didn't start the server as worker, "default" is the profile name
>>> which will load, if we start as worker then there should be a profile name
>>> "woker" directory in the repository/components.
>>>
>>> Thanks,
>>> Shameera.
>>>
>>>
>>> On Mon, Mar 3, 2014 at 11:26 PM, Shameera Rathnayaka 
>>> <[email protected]>wrote:
>>>
>>>> Hi Miyuru/Kasun,
>>>>
>>>>
>>>> On Mon, Mar 3, 2014 at 10:54 PM, Kasun Gajasinghe <[email protected]>wrote:
>>>>
>>>>>
>>>>> On Mon, Mar 3, 2014 at 10:50 PM, Miyuru Wanninayaka 
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> How about during startup, log a message telling that
>>>>>> Starting as a manager|worker node.
>>>>>>
>>>>>> So less chance of missing proper configuration and also by just
>>>>>> looking at logs anyone can say that log in from worker/manager node.
>>>>>>
>>>>>
>>>> +1 for logging the type, but not the worker or manager, as now we are
>>>> supporting multiple profile with carbon kernel , best way is log the
>>>> profile name.  WDYS?
>>>>
>>>> @Kasun,
>>>> Can you explain how you gonna add this to carbon.xml ? what is the
>>>> element name?
>>>>
>>>>  Thanks,
>>>> Shameera.
>>>>
>>>>
>>>>
>>>>>
>>>>>>
>>>>> +1. I will do that as well.
>>>>>
>>>>>
>>>>>>
>>>>>> On Monday, March 3, 2014, Kasun Gajasinghe <[email protected]> wrote:
>>>>>>
>>>>>>>  Hi,
>>>>>>>
>>>>>>> Shall we $subject from Carbon 4.3.0? And then, force the users to
>>>>>>> enable workerNode mode by modifying the startup script itself, instead 
>>>>>>> of
>>>>>>> passing -DworkerNode=true property via command-line?
>>>>>>>
>>>>>>> We have noticed that lot of users are passing the said property via
>>>>>>> the command-line, but they sometimes miss to set that. That might lead 
>>>>>>> to
>>>>>>> lot of issues especially in DepSync. If we set as above, we can lower 
>>>>>>> the
>>>>>>> human errors. WDYT?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> KasunG
>>>>>>>
>>>>>>> --
>>>>>>> *Kasun Gajasinghe*
>>>>>>> Software Engineer;
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>
>>>>>>>
>>>>>>>  ,
>>>>>>> *email: *
>>>>>>> *kasung AT spamfree wso2.com <http://wso2.com>   ** cell: **+94
>>>>>>> (77) 678-0813 <%2B94%20%2877%29%20678-0813>*
>>>>>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *blog: **http://kasunbg.org* <http://kasunbg.org>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sent from my iPad
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kasun Gajasinghe*
>>>>> Software Engineer;
>>>>> WSO2 Inc.; http://wso2.com
>>>>>
>>>>>
>>>>>  ,
>>>>> *email: *
>>>>> *kasung AT spamfree wso2.com <http://wso2.com>   ** cell: **+94 (77)
>>>>> 678-0813 <%2B94%20%2877%29%20678-0813>*
>>>>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>>>>
>>>>>
>>>>>
>>>>> *blog: **http://kasunbg.org* <http://kasunbg.org>
>>>>>
>>>>>
>>>>>
>>>>> *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Software Engineer - WSO2 Inc.*
>>>> *email: shameera AT wso2.com <[email protected]> , shameera AT
>>>> apache.org <[email protected]>*
>>>> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>>>>
>>>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>>>> *Twitter     : *https://twitter.com/Shameera_R
>>>>
>>>
>>>
>>>
>>> --
>>> *Software Engineer - WSO2 Inc.*
>>> *email: shameera AT wso2.com <[email protected]> , shameera AT
>>> apache.org <[email protected]>*
>>> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>>>
>>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>>> *Twitter     : *https://twitter.com/Shameera_R
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: [email protected] <[email protected]>
>> mobile: +94 (0)71 56 91 321
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> Ashansa Perera
> Software Engineer
> WSO2, Inc
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Jayasoma,
Architect,

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to