Re: [Dev] What happens when we have multiple versions of same jar in plugins?
Hi Tharindu & Aruna, Thanks for the quick response. Regards, Lakshani. On Tue, Apr 7, 2015 at 11:16 PM, Aruna Karunarathna wrote: > Hi Lakshani, > > It depends, if the jar is listed in the bundles.info file, then that jar > will be effective at the runtime. So in order to bundle inside the plugins > folder to be used, it must be listed in the bundles.info file. If the jar > is not in the bundles.info file, but in the plugins folder, that jar will > be not effective in the runtime. > So when in the runtime for effective bundles, according to the import > versions, of the using bundle, the relevant export bundle will be used, > if version is not defined, highest active version is used. > > Regards, > Aruna > > On Tue, Apr 7, 2015 at 10:36 AM, Lakshani Gamage > wrote: > >> Hi all, >> If there are multiple versions of the same jar in the >> repository/components/plugins folder, which version is actually used at >> runtime? Is it higher version of the jar or a random one? >> Thank you. >> -- >> Lakshani Gamage >> >> *Software Engineer* >> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Aruna Sujith Karunarathna* | Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 9040362 | Work: +94 112145345 > Email: ar...@wso2.com | Web: www.wso2.com > > -- Lakshani Gamage *Software Engineer* Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What happens when we have multiple versions of same jar in plugins?
Hi Lakshani, It depends, if the jar is listed in the bundles.info file, then that jar will be effective at the runtime. So in order to bundle inside the plugins folder to be used, it must be listed in the bundles.info file. If the jar is not in the bundles.info file, but in the plugins folder, that jar will be not effective in the runtime. So when in the runtime for effective bundles, according to the import versions, of the using bundle, the relevant export bundle will be used, if version is not defined, highest active version is used. Regards, Aruna On Tue, Apr 7, 2015 at 10:36 AM, Lakshani Gamage wrote: > Hi all, > If there are multiple versions of the same jar in the > repository/components/plugins folder, which version is actually used at > runtime? Is it higher version of the jar or a random one? > Thank you. > -- > Lakshani Gamage > > *Software Engineer* > Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What happens when we have multiple versions of same jar in plugins?
Hi Lakshani, You can check the version in use from the bundles.info file. /repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator/ bundles.info On Tue, Apr 7, 2015 at 11:06 PM, Lakshani Gamage wrote: > Hi all, > If there are multiple versions of the same jar in the > repository/components/plugins folder, which version is actually used at > runtime? Is it higher version of the jar or a random one? > Thank you. > -- > Lakshani Gamage > > *Software Engineer* > Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] What happens when we have multiple versions of same jar in plugins?
Hi all, If there are multiple versions of the same jar in the repository/components/plugins folder, which version is actually used at runtime? Is it higher version of the jar or a random one? Thank you. -- Lakshani Gamage *Software Engineer* Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev