Hi, Here is complete sample code on madhuka mentioned approach.
http://wso2life.jayathilaka.org/2014/06/read-wso2-carbon-config-using-jaggeryjs.html You can set it to server session and read it.. session.put("store_conf", conf); var cartridgeStoreConf = session.get("store_conf"); *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 6, 2014 at 7:28 PM, Dinesh Bandara <[email protected]> wrote: > Hi Madhuka, > > Thanks for the info. > Since this property file already used by carbon component, properties are > export as system properties. Therefore I have used "process" module to read > system properties. > > Thanks > > > On Fri, Jun 6, 2014 at 1:53 PM, madhuka udantha <[email protected]> > wrote: > >> Hi, >> >> You can try below way, here is sample code[1]. There are some other way >> for $subject also. >> var conf = carbon.server.loadConfig(<config file>) >> >> [1] https://github.com/wso2/ues/blob/master/modules/apps/portal/app.js >> On Fri, Jun 6, 2014 at 12:51 PM, Dinesh Bandara <[email protected]> wrote: >> >>> carbon >> >> >> >> >> >> -- >> Cheers, >> Madhuka Udantha >> http://madhukaudantha.blogspot.com >> > > > > -- > *Dinesh Bandara* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
