I see a problem with the existing logic. IMO configurator should give priority to the environment variables if that option is enabled. Requiring to comment variables in module.ini is an overhead.
Thanks On Thursday, June 25, 2015, Anuruddha Liyanarachchi <[email protected]> wrote: > Hi Lahiru, > > If we do that we will always have to set all the parameters. > > On Thu, Jun 25, 2015 at 8:23 AM, Lahiru Sandaruwan <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > >> Ah.. I see, Thanks. >> >> Shall we make it read those values even if those values are commented in >> module.ini? >> >> Thanks. >> >> On Thu, Jun 25, 2015 at 8:14 AM, Anuruddha Liyanarachchi < >> [email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');> >> > wrote: >> >>> Hi Lahiru, >>> >>> It looks like you haven't un-comment the line in module.ini. You need to >>> uncomment the lines relevant to the parameters you are sending as payload, >>> then only configurator will read those from environment and override the >>> value with environment value. >>> >>> Thanks, >>> >>> On Thu, Jun 25, 2015 at 12:25 AM, Lahiru Sandaruwan <[email protected] >>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: >>> >>>> Hi, >>>> >>>> I have sent parameters that are required to configure ESB cluster in >>>> payload as at [1]. Payload contains all the values i sent. >>>> >>>> But the configurator only picks few, as per the log [2]. >>>> >>>> Any idea, on what i might be doing wrong? >>>> >>>> Thanks. >>>> >>>> [1] >>>> >>>> CONFIG_PARAM_CLUSTERING=true, >>>> >>>> CONFIG_PARAM_REGISTRY_DB_PASSWORD=asdfs, >>>> >>>> CONFIG_PARAM_WKA_MEMBERS="127.0.0.1:4000", >>>> >>>> CONFIG_PARAM_REGISTRY_DB_USER_NAME=root, >>>> >>>> CONFIG_PARAM_REGISTRY_DB_URL=jdbc:mysql:// >>>> 172.17.8.1:3306/reg_db?autoReconnect=true, >>>> >>>> CONFIG_PARAM_USER_MGT_DB_USER_NAME=root, >>>> >>>> CONFIG_PARAM_DRIVER_CLASS_NAME=com.mysql.jdbc.Driver, >>>> >>>> CONFIG_PARAM_PT_HTTP_PROXY_PORT=8280, >>>> >>>> CONFIG_PARAM_LOCAL_MEMBER_HOST=127.0.0.1, >>>> >>>> CONFIG_PARAM_PT_HTTPS_PROXY_PORT=8243, >>>> >>>> CONFIG_PARAM_PORT_OFFSET=0, >>>> >>>> START_CMD=PCA, >>>> >>>> CONFIG_PARAM_DOMAIN=wso2.esb.com, >>>> >>>> CONFIG_PARAM_USER_MGT_DB_PASSWORD=asdf, >>>> >>>> CONFIG_PARAM_MEMBERSHIP_SCHEME=wka, >>>> >>>> CONFIG_PARAM_USER_MGT_DB_URL=jdbc:mysql://172.17.8.1:3306/user_db, >>>> >>>> CONFIG_PARAM_LOCAL_MEMBER_PORT=4100 >>>> >>>> [2] >>>> 2015-06-24 18:15:43,408 __main__ INFO Context generated: >>>> {'CONFIG_PARAM_DOMAIN': 'wso2.esb.com', >>>> 'CONFIG_PARAM_LOCAL_MEMBER_PORT': '4100', 'CONFIG_PARAM_LOCAL_MEMBER_HOST': >>>> '127.0.0.1', 'CONFIG_PARAM_WKA_MEMBERS': {'127.0.0.1': '4000'}, >>>> 'CONFIG_PARAM_PORT_OFFSET': '0', 'CONFIG_PARAM_SUB_DOMAIN': 'worker', >>>> 'CONFIG_PARAM_MEMBERSHIP_SCHEME': 'wka', 'CONFIG_PARAM_CLUSTERING': 'true', >>>> 'CONFIG_PARAM_PT_HTTP_PROXY_PORT': '8280', >>>> 'CONFIG_PARAM_PT_HTTPS_PROXY_PORT': '8243'} >>>> >>>> -- >>>> -- >>>> Lahiru Sandaruwan >>>> Committer and PMC member, Apache Stratos, >>>> Senior Software Engineer, >>>> WSO2 Inc., http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> phone: +94773325954 >>>> email: [email protected] >>>> <javascript:_e(%7B%7D,'cvml','[email protected]');> blog: >>>> http://lahiruwrites.blogspot.com/ >>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>> >>>> >>> >>> >>> -- >>> *Thanks and Regards,* >>> Anuruddha Lanka Liyanarachchi >>> Software Engineer - WSO2 >>> Mobile : +94 (0) 712762611 >>> Tel : +94 112 145 345 >>> a <javascript:_e(%7B%7D,'cvml','[email protected]');>[email protected] >>> <javascript:_e(%7B%7D,'cvml','[email protected]');> >>> >> >> >> >> -- >> -- >> Lahiru Sandaruwan >> Committer and PMC member, Apache Stratos, >> Senior Software Engineer, >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> phone: +94773325954 >> email: [email protected] >> <javascript:_e(%7B%7D,'cvml','[email protected]');> blog: >> http://lahiruwrites.blogspot.com/ >> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >> >> > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a <javascript:_e(%7B%7D,'cvml','[email protected]');>[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');> > -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
