Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-06 Thread Hasini Yatawatte
On Mon, Jun 6, 2011 at 3:55 PM, Senaka Fernando  wrote:

> Hi Pradeep,
>
> On Mon, Jun 6, 2011 at 3:30 PM, Pradeep Fernando  wrote:
>
>> Hi,
>>
>> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage 
>> wrote:
>> > Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
>> > it's better if we can have the carbon version also in carbon.xml in the
>>
>>
>> we discussed this some time ago. Specifically hasiniy wanted to get
>> the carbon version programatically (usage - issue tracker component).
>> And we decided to add it to the carbon.xml.
>>
>
> I don't see this in carbon.xml of the RC5 builds of the products. Hasn't
> this been done as yet?
>

Yes I wanted to read the carbon version programmatically, Hence I was to add
the carbon version to carbon.xml file. But this has not being done yet.

Thanks,
Regards,
HasiniY.


>
> Thanks,
> Senaka.
>
>>
>>
>> --Pradeep
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Hasini Randika Yatawatte,
Software Engineer.
WSO2 Inc.
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-06 Thread Senaka Fernando
Hi Pradeep,

On Mon, Jun 6, 2011 at 3:30 PM, Pradeep Fernando  wrote:

> Hi,
>
> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage 
> wrote:
> > Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
> > it's better if we can have the carbon version also in carbon.xml in the
>
>
> we discussed this some time ago. Specifically hasiniy wanted to get
> the carbon version programatically (usage - issue tracker component).
> And we decided to add it to the carbon.xml.
>

I don't see this in carbon.xml of the RC5 builds of the products. Hasn't
this been done as yet?

Thanks,
Senaka.

>
>
> --Pradeep
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-06 Thread Pradeep Fernando
Hi,

On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage  wrote:
> Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
> it's better if we can have the carbon version also in carbon.xml in the


we discussed this some time ago. Specifically hasiniy wanted to get
the carbon version programatically (usage - issue tracker component).
And we decided to add it to the carbon.xml.


--Pradeep
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-06 Thread Saminda Wijeratne
On Sun, Jun 5, 2011 at 6:21 PM, Saminda Wijeratne  wrote:

> How does the server dashboard fill its information? I noticed it contains
> the product version.
>
Basically I'm assuming these information is passed via a web service to the
FE. If so whats that service :)?

Saminda

>
> Saminda
>
> On Sun, Jun 5, 2011 at 5:24 PM, Senaka Fernando  wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 4:20 PM, Hiranya Jayathilaka wrote:
>>
>>> Perhaps we should consider providing this information through one of the
>>> code admin services - Component manager admin or server admin? Might come in
>>> handy for other users/developers as well.
>>
>>
>> Yes, I think this is what's needed.
>>
>> Anyway, the carbon platform version was not added to the carbon.xml since
>> there was no requirement of knowing the platform version within a particular
>> server instance. This was simply added as a separate file to get
>> ./wso2carbon.sh --version to work. So, IMO we need to move this to
>> carbon.xml, and create some generic service so that this information can be
>> obtained from a running server.
>>
>> And, we should use the Version service for this purpose, AFAIU. WDYT?
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Hiranya
>>>
>>> On Sun, Jun 5, 2011 at 2:20 PM, Saminda Wijeratne wrote:
>>>
 If the server location is unknown or inaccessible, carbon.xml method
 will not work for #2 :(.

 Saminda


 On Sun, Jun 5, 2011 at 1:58 PM, Muhammed Shariq wrote:

> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage 
> wrote:
>
>> Best thing is to use carbon.xml and wso2carbon-version.txt file. I
>> think it's better if we can have the carbon version also in carbon.xml in
>> the future.
>
> +1 .. good to have all in one place.
>
>>
>> Thanks
>> Milinda
>>
>>
>> On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne > > wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando wrote:
>>>


 On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne <
 samin...@wso2.com> wrote:

> Thanks Senaka, you suggestions for #1 are really useful.
>
> For #2 we'll be a 3rd party application (aka. an eclipse plugin
> ;)). Thus ServerConfiguration is not accessible to us, unless it is 
> exposed
> as an admin service. is it?
>

 Don't you make use of the carbon.base bundle in Eclipse? If you do,
 its a matter of providing the location to the carbon.xml file and
 initializing the ServerConfiguration. Also, ServerConfiguration is a
 singleton, and, re-initializations should be done forcefully.

>>> The running instance is a remote instance. eg: stratos instance.
>>>
>>> Saminda
>>>

 Thanks,
 Senaka.

 Saminda
>
>
> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando 
> wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando > > wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne <
>>> samin...@wso2.com> wrote:
>>>
 I have 2 scenarios which I want to identify the product, its
 version & its associated carbon version.

1. Given a product binary distribution
2. Given a running product instance (say we have the url +
credentials)

 How to accomplish this?

>>>
>>> Product name/version is on the carbon.xml, and can be read for
>>> #1, and programmatically accessed through the ServerConfiguration 
>>> for #2.
>>>
>>> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and
>>> can be read for #1, and programmatically accessed by reading the 
>>> file, and
>>> parsing the string, and removing everything infront of the last 
>>> "v". AFAIU,
>>> I think the following regular expression should match it (apologies 
>>> if it
>>> was wrong, but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>>>
>>
>> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Senaka.
>>>

 Thanks,
 Saminda

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache 

Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-05 Thread Saminda Wijeratne
How does the server dashboard fill its information? I noticed it contains
the product version.

Saminda

On Sun, Jun 5, 2011 at 5:24 PM, Senaka Fernando  wrote:

>
>
> On Sun, Jun 5, 2011 at 4:20 PM, Hiranya Jayathilaka wrote:
>
>> Perhaps we should consider providing this information through one of the
>> code admin services - Component manager admin or server admin? Might come in
>> handy for other users/developers as well.
>
>
> Yes, I think this is what's needed.
>
> Anyway, the carbon platform version was not added to the carbon.xml since
> there was no requirement of knowing the platform version within a particular
> server instance. This was simply added as a separate file to get
> ./wso2carbon.sh --version to work. So, IMO we need to move this to
> carbon.xml, and create some generic service so that this information can be
> obtained from a running server.
>
> And, we should use the Version service for this purpose, AFAIU. WDYT?
>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Hiranya
>>
>> On Sun, Jun 5, 2011 at 2:20 PM, Saminda Wijeratne wrote:
>>
>>> If the server location is unknown or inaccessible, carbon.xml method will
>>> not work for #2 :(.
>>>
>>> Saminda
>>>
>>>
>>> On Sun, Jun 5, 2011 at 1:58 PM, Muhammed Shariq  wrote:
>>>
 On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage wrote:

> Best thing is to use carbon.xml and wso2carbon-version.txt file. I
> think it's better if we can have the carbon version also in carbon.xml in
> the future.

 +1 .. good to have all in one place.

>
> Thanks
> Milinda
>
>
> On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne 
> wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne <
>>> samin...@wso2.com> wrote:
>>>
 Thanks Senaka, you suggestions for #1 are really useful.

 For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)).
 Thus ServerConfiguration is not accessible to us, unless it is exposed 
 as an
 admin service. is it?

>>>
>>> Don't you make use of the carbon.base bundle in Eclipse? If you do,
>>> its a matter of providing the location to the carbon.xml file and
>>> initializing the ServerConfiguration. Also, ServerConfiguration is a
>>> singleton, and, re-initializations should be done forcefully.
>>>
>> The running instance is a remote instance. eg: stratos instance.
>>
>> Saminda
>>
>>>
>>> Thanks,
>>> Senaka.
>>>
>>> Saminda


 On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando 
 wrote:

>
>
> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando 
> wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne <
>> samin...@wso2.com> wrote:
>>
>>> I have 2 scenarios which I want to identify the product, its
>>> version & its associated carbon version.
>>>
>>>1. Given a product binary distribution
>>>2. Given a running product instance (say we have the url +
>>>credentials)
>>>
>>> How to accomplish this?
>>>
>>
>> Product name/version is on the carbon.xml, and can be read for #1,
>> and programmatically accessed through the ServerConfiguration for #2.
>>
>> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and
>> can be read for #1, and programmatically accessed by reading the 
>> file, and
>> parsing the string, and removing everything infront of the last "v". 
>> AFAIU,
>> I think the following regular expression should match it (apologies 
>> if it
>> was wrong, but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>>
>
> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Saminda
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Senaka Fernando*
>>>

Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-05 Thread Senaka Fernando
On Sun, Jun 5, 2011 at 4:20 PM, Hiranya Jayathilaka wrote:

> Perhaps we should consider providing this information through one of the
> code admin services - Component manager admin or server admin? Might come in
> handy for other users/developers as well.


Yes, I think this is what's needed.

Anyway, the carbon platform version was not added to the carbon.xml since
there was no requirement of knowing the platform version within a particular
server instance. This was simply added as a separate file to get
./wso2carbon.sh --version to work. So, IMO we need to move this to
carbon.xml, and create some generic service so that this information can be
obtained from a running server.

And, we should use the Version service for this purpose, AFAIU. WDYT?

Thanks,
Senaka.

>
> Thanks,
> Hiranya
>
> On Sun, Jun 5, 2011 at 2:20 PM, Saminda Wijeratne wrote:
>
>> If the server location is unknown or inaccessible, carbon.xml method will
>> not work for #2 :(.
>>
>> Saminda
>>
>>
>> On Sun, Jun 5, 2011 at 1:58 PM, Muhammed Shariq  wrote:
>>
>>> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage wrote:
>>>
 Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
 it's better if we can have the carbon version also in carbon.xml in the
 future.
>>>
>>> +1 .. good to have all in one place.
>>>

 Thanks
 Milinda


 On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne 
 wrote:

>
>
> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne > > wrote:
>>
>>> Thanks Senaka, you suggestions for #1 are really useful.
>>>
>>> For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)).
>>> Thus ServerConfiguration is not accessible to us, unless it is exposed 
>>> as an
>>> admin service. is it?
>>>
>>
>> Don't you make use of the carbon.base bundle in Eclipse? If you do,
>> its a matter of providing the location to the carbon.xml file and
>> initializing the ServerConfiguration. Also, ServerConfiguration is a
>> singleton, and, re-initializations should be done forcefully.
>>
> The running instance is a remote instance. eg: stratos instance.
>
> Saminda
>
>>
>> Thanks,
>> Senaka.
>>
>> Saminda
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando wrote:
>>>


 On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando 
 wrote:

>
>
> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne <
> samin...@wso2.com> wrote:
>
>> I have 2 scenarios which I want to identify the product, its
>> version & its associated carbon version.
>>
>>1. Given a product binary distribution
>>2. Given a running product instance (say we have the url +
>>credentials)
>>
>> How to accomplish this?
>>
>
> Product name/version is on the carbon.xml, and can be read for #1,
> and programmatically accessed through the ServerConfiguration for #2.
>
> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and
> can be read for #1, and programmatically accessed by reading the 
> file, and
> parsing the string, and removing everything infront of the last "v". 
> AFAIU,
> I think the following regular expression should match it (apologies 
> if it
> was wrong, but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>

 Correction: ^.*(v[1-9]+[.]d+[.]d+)$

 Thanks,
 Senaka.

>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Saminda
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>


 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean .

Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-05 Thread Hiranya Jayathilaka
Perhaps we should consider providing this information through one of the
code admin services - Component manager admin or server admin? Might come in
handy for other users/developers as well.

Thanks,
Hiranya

On Sun, Jun 5, 2011 at 2:20 PM, Saminda Wijeratne  wrote:

> If the server location is unknown or inaccessible, carbon.xml method will
> not work for #2 :(.
>
> Saminda
>
>
> On Sun, Jun 5, 2011 at 1:58 PM, Muhammed Shariq  wrote:
>
>> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage wrote:
>>
>>> Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
>>> it's better if we can have the carbon version also in carbon.xml in the
>>> future.
>>
>> +1 .. good to have all in one place.
>>
>>>
>>> Thanks
>>> Milinda
>>>
>>>
>>> On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne wrote:
>>>


 On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando wrote:

>
>
> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne 
> wrote:
>
>> Thanks Senaka, you suggestions for #1 are really useful.
>>
>> For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)).
>> Thus ServerConfiguration is not accessible to us, unless it is exposed 
>> as an
>> admin service. is it?
>>
>
> Don't you make use of the carbon.base bundle in Eclipse? If you do, its
> a matter of providing the location to the carbon.xml file and initializing
> the ServerConfiguration. Also, ServerConfiguration is a singleton, and,
> re-initializations should be done forcefully.
>
 The running instance is a remote instance. eg: stratos instance.

 Saminda

>
> Thanks,
> Senaka.
>
> Saminda
>>
>>
>> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando wrote:
>>>


 On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne <
 samin...@wso2.com> wrote:

> I have 2 scenarios which I want to identify the product, its
> version & its associated carbon version.
>
>1. Given a product binary distribution
>2. Given a running product instance (say we have the url +
>credentials)
>
> How to accomplish this?
>

 Product name/version is on the carbon.xml, and can be read for #1,
 and programmatically accessed through the ServerConfiguration for #2.

 Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can
 be read for #1, and programmatically accessed by reading the file, and
 parsing the string, and removing everything infront of the last "v". 
 AFAIU,
 I think the following regular expression should match it (apologies if 
 it
 was wrong, but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$

>>>
>>> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>>>
>>> Thanks,
>>> Senaka.
>>>

 Thanks,
 Senaka.

>
> Thanks,
> Saminda
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>

Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-05 Thread Saminda Wijeratne
If the server location is unknown or inaccessible, carbon.xml method will
not work for #2 :(.

Saminda

On Sun, Jun 5, 2011 at 1:58 PM, Muhammed Shariq  wrote:

> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage wrote:
>
>> Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
>> it's better if we can have the carbon version also in carbon.xml in the
>> future.
>
> +1 .. good to have all in one place.
>
>>
>> Thanks
>> Milinda
>>
>>
>> On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando wrote:
>>>


 On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne 
 wrote:

> Thanks Senaka, you suggestions for #1 are really useful.
>
> For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)).
> Thus ServerConfiguration is not accessible to us, unless it is exposed as 
> an
> admin service. is it?
>

 Don't you make use of the carbon.base bundle in Eclipse? If you do, its
 a matter of providing the location to the carbon.xml file and initializing
 the ServerConfiguration. Also, ServerConfiguration is a singleton, and,
 re-initializations should be done forcefully.

>>> The running instance is a remote instance. eg: stratos instance.
>>>
>>> Saminda
>>>

 Thanks,
 Senaka.

 Saminda
>
>
> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne <
>>> samin...@wso2.com> wrote:
>>>
 I have 2 scenarios which I want to identify the product, its version
 & its associated carbon version.

1. Given a product binary distribution
2. Given a running product instance (say we have the url +
credentials)

 How to accomplish this?

>>>
>>> Product name/version is on the carbon.xml, and can be read for #1,
>>> and programmatically accessed through the ServerConfiguration for #2.
>>>
>>> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can
>>> be read for #1, and programmatically accessed by reading the file, and
>>> parsing the string, and removing everything infront of the last "v". 
>>> AFAIU,
>>> I think the following regular expression should match it (apologies if 
>>> it
>>> was wrong, but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>>>
>>
>> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Senaka.
>>>

 Thanks,
 Saminda

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listin

Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-05 Thread Muhammed Shariq
On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage  wrote:

> Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
> it's better if we can have the carbon version also in carbon.xml in the
> future.

+1 .. good to have all in one place.

>
> Thanks
> Milinda
>
>
> On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando  wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne wrote:
>>>
 Thanks Senaka, you suggestions for #1 are really useful.

 For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)).
 Thus ServerConfiguration is not accessible to us, unless it is exposed as 
 an
 admin service. is it?

>>>
>>> Don't you make use of the carbon.base bundle in Eclipse? If you do, its a
>>> matter of providing the location to the carbon.xml file and initializing the
>>> ServerConfiguration. Also, ServerConfiguration is a singleton, and,
>>> re-initializations should be done forcefully.
>>>
>> The running instance is a remote instance. eg: stratos instance.
>>
>> Saminda
>>
>>>
>>> Thanks,
>>> Senaka.
>>>
>>> Saminda


 On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando wrote:

>
>
> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne > > wrote:
>>
>>> I have 2 scenarios which I want to identify the product, its version
>>> & its associated carbon version.
>>>
>>>1. Given a product binary distribution
>>>2. Given a running product instance (say we have the url +
>>>credentials)
>>>
>>> How to accomplish this?
>>>
>>
>> Product name/version is on the carbon.xml, and can be read for #1, and
>> programmatically accessed through the ServerConfiguration for #2.
>>
>> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can
>> be read for #1, and programmatically accessed by reading the file, and
>> parsing the string, and removing everything infront of the last "v". 
>> AFAIU,
>> I think the following regular expression should match it (apologies if it
>> was wrong, but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>>
>
> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Saminda
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Milinda Pathirage
> Technical Lead and Product Manager, Business Process Server - WSO2 Inc;
> http://wso2.com
> Blog: http://blog.mpathirage.com
>
> Lean Enterprise Middleware
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-d

Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-05 Thread Milinda Pathirage
Best thing is to use carbon.xml and wso2carbon-version.txt file. I think
it's better if we can have the carbon version also in carbon.xml in the
future.

Thanks
Milinda

On Sun, Jun 5, 2011 at 12:16 PM, Saminda Wijeratne wrote:

>
>
> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando  wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne wrote:
>>
>>> Thanks Senaka, you suggestions for #1 are really useful.
>>>
>>> For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)). Thus
>>> ServerConfiguration is not accessible to us, unless it is exposed as an
>>> admin service. is it?
>>>
>>
>> Don't you make use of the carbon.base bundle in Eclipse? If you do, its a
>> matter of providing the location to the carbon.xml file and initializing the
>> ServerConfiguration. Also, ServerConfiguration is a singleton, and,
>> re-initializations should be done forcefully.
>>
> The running instance is a remote instance. eg: stratos instance.
>
> Saminda
>
>>
>> Thanks,
>> Senaka.
>>
>> Saminda
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando wrote:
>>>


 On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando wrote:

>
>
> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne 
> wrote:
>
>> I have 2 scenarios which I want to identify the product, its version &
>> its associated carbon version.
>>
>>1. Given a product binary distribution
>>2. Given a running product instance (say we have the url +
>>credentials)
>>
>> How to accomplish this?
>>
>
> Product name/version is on the carbon.xml, and can be read for #1, and
> programmatically accessed through the ServerConfiguration for #2.
>
> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can be
> read for #1, and programmatically accessed by reading the file, and 
> parsing
> the string, and removing everything infront of the last "v". AFAIU, I 
> think
> the following regular expression should match it (apologies if it was 
> wrong,
> but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>

 Correction: ^.*(v[1-9]+[.]d+[.]d+)$

 Thanks,
 Senaka.

>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Saminda
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>


 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Milinda Pathirage
Technical Lead and Product Manager, Business Process Server - WSO2 Inc;
http://wso2.com
Blog: http://blog.mpathirage.com

Lean Enterprise Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-04 Thread Saminda Wijeratne
On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando  wrote:

>
>
> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne wrote:
>
>> Thanks Senaka, you suggestions for #1 are really useful.
>>
>> For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)). Thus
>> ServerConfiguration is not accessible to us, unless it is exposed as an
>> admin service. is it?
>>
>
> Don't you make use of the carbon.base bundle in Eclipse? If you do, its a
> matter of providing the location to the carbon.xml file and initializing the
> ServerConfiguration. Also, ServerConfiguration is a singleton, and,
> re-initializations should be done forcefully.
>
The running instance is a remote instance. eg: stratos instance.

Saminda

>
> Thanks,
> Senaka.
>
> Saminda
>>
>>
>> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando  wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando wrote:
>>>


 On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne 
 wrote:

> I have 2 scenarios which I want to identify the product, its version &
> its associated carbon version.
>
>1. Given a product binary distribution
>2. Given a running product instance (say we have the url +
>credentials)
>
> How to accomplish this?
>

 Product name/version is on the carbon.xml, and can be read for #1, and
 programmatically accessed through the ServerConfiguration for #2.

 Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can be
 read for #1, and programmatically accessed by reading the file, and parsing
 the string, and removing everything infront of the last "v". AFAIU, I think
 the following regular expression should match it (apologies if it was 
 wrong,
 but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$

>>>
>>> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>>>
>>> Thanks,
>>> Senaka.
>>>

 Thanks,
 Senaka.

>
> Thanks,
> Saminda
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-04 Thread Senaka Fernando
On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne wrote:

> Thanks Senaka, you suggestions for #1 are really useful.
>
> For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)). Thus
> ServerConfiguration is not accessible to us, unless it is exposed as an
> admin service. is it?
>

Don't you make use of the carbon.base bundle in Eclipse? If you do, its a
matter of providing the location to the carbon.xml file and initializing the
ServerConfiguration. Also, ServerConfiguration is a singleton, and,
re-initializations should be done forcefully.

Thanks,
Senaka.

Saminda
>
>
> On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando  wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando  wrote:
>>
>>>
>>>
>>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne wrote:
>>>
 I have 2 scenarios which I want to identify the product, its version &
 its associated carbon version.

1. Given a product binary distribution
2. Given a running product instance (say we have the url +
credentials)

 How to accomplish this?

>>>
>>> Product name/version is on the carbon.xml, and can be read for #1, and
>>> programmatically accessed through the ServerConfiguration for #2.
>>>
>>> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can be
>>> read for #1, and programmatically accessed by reading the file, and parsing
>>> the string, and removing everything infront of the last "v". AFAIU, I think
>>> the following regular expression should match it (apologies if it was wrong,
>>> but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>>>
>>
>> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Senaka.
>>>

 Thanks,
 Saminda

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-04 Thread Saminda Wijeratne
Thanks Senaka, you suggestions for #1 are really useful.

For #2 we'll be a 3rd party application (aka. an eclipse plugin ;)). Thus
ServerConfiguration is not accessible to us, unless it is exposed as an
admin service. is it?

Saminda

On Sun, Jun 5, 2011 at 11:15 AM, Senaka Fernando  wrote:

>
>
> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando  wrote:
>
>>
>>
>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne wrote:
>>
>>> I have 2 scenarios which I want to identify the product, its version &
>>> its associated carbon version.
>>>
>>>1. Given a product binary distribution
>>>2. Given a running product instance (say we have the url +
>>>credentials)
>>>
>>> How to accomplish this?
>>>
>>
>> Product name/version is on the carbon.xml, and can be read for #1, and
>> programmatically accessed through the ServerConfiguration for #2.
>>
>> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can be
>> read for #1, and programmatically accessed by reading the file, and parsing
>> the string, and removing everything infront of the last "v". AFAIU, I think
>> the following regular expression should match it (apologies if it was wrong,
>> but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>>
>
> Correction: ^.*(v[1-9]+[.]d+[.]d+)$
>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Senaka.
>>
>>>
>>> Thanks,
>>> Saminda
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-04 Thread Senaka Fernando
On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando  wrote:

>
>
> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne wrote:
>
>> I have 2 scenarios which I want to identify the product, its version & its
>> associated carbon version.
>>
>>1. Given a product binary distribution
>>2. Given a running product instance (say we have the url +
>>credentials)
>>
>> How to accomplish this?
>>
>
> Product name/version is on the carbon.xml, and can be read for #1, and
> programmatically accessed through the ServerConfiguration for #2.
>
> Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can be
> read for #1, and programmatically accessed by reading the file, and parsing
> the string, and removing everything infront of the last "v". AFAIU, I think
> the following regular expression should match it (apologies if it was wrong,
> but I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$
>

Correction: ^.*(v[1-9]+[.]d+[.]d+)$

Thanks,
Senaka.

>
> Thanks,
> Senaka.
>
>>
>> Thanks,
>> Saminda
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-04 Thread Senaka Fernando
On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne wrote:

> I have 2 scenarios which I want to identify the product, its version & its
> associated carbon version.
>
>1. Given a product binary distribution
>2. Given a running product instance (say we have the url + credentials)
>
> How to accomplish this?
>

Product name/version is on the carbon.xml, and can be read for #1, and
programmatically accessed through the ServerConfiguration for #2.

Carbon version is on $CARBON_HOME/bin/wso2carbon-version.txt and can be read
for #1, and programmatically accessed by reading the file, and parsing the
string, and removing everything infront of the last "v". AFAIU, I think the
following regular expression should match it (apologies if it was wrong, but
I hope you got the point): ^.*v[1-9]+[.]d+[.]d+$

Thanks,
Senaka.

>
> Thanks,
> Saminda
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Determining product + product version + carbon version

2011-06-04 Thread Saminda Wijeratne
For 1 we could use carbon.xml to determine product & product version but it
does not include the carbon version. Any way to figure this out other than
keeping an internal map?

Saminda

On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne wrote:

> I have 2 scenarios which I want to identify the product, its version & its
> associated carbon version.
>
>1. Given a product binary distribution
>2. Given a running product instance (say we have the url + credentials)
>
> How to accomplish this?
>
> Thanks,
> Saminda
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev