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 <[email protected]> wrote: > > > On Sun, Jun 5, 2011 at 4:20 PM, Hiranya Jayathilaka <[email protected]>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 <[email protected]>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 <[email protected]> wrote: >>> >>>> On Sun, Jun 5, 2011 at 12:55 PM, Milinda Pathirage <[email protected]>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 >>>>> <[email protected]>wrote: >>>>> >>>>>> >>>>>> >>>>>> On Sun, Jun 5, 2011 at 11:51 AM, Senaka Fernando <[email protected]>wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Jun 5, 2011 at 11:43 AM, Saminda Wijeratne < >>>>>>> [email protected]> 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 >>>>>>>> <[email protected]>wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Sun, Jun 5, 2011 at 11:12 AM, Senaka Fernando >>>>>>>>> <[email protected]>wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Sun, Jun 5, 2011 at 11:05 AM, Saminda Wijeratne < >>>>>>>>>> [email protected]> 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 >>>>>>>>>>> [email protected] >>>>>>>>>>> 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 >>>>>>>>> [email protected] >>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Carbon-dev mailing list >>>>>>>> [email protected] >>>>>>>> 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 >>>>>>> [email protected] >>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Carbon-dev mailing list >>>>>> [email protected] >>>>>> 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 >>>>> [email protected] >>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> [email protected] >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> >> -- >> Hiranya Jayathilaka >> Associate Technical Lead; >> WSO2 Inc.; http://wso2.org >> E-mail: [email protected]; Mobile: +94 77 633 3491 >> Blog: http://techfeast-hiranya.blogspot.com >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> 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 > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
