Re: [Architecture] [AF] Datasources for PHP application type

2014-08-22 Thread Ajanthan Balachandran
On Fri, Aug 22, 2014 at 10:22 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi Ajanthan, On Fri, Aug 22, 2014 at 10:08 AM, Ajanthan Balachandran ajant...@wso2.com wrote: On Fri, Aug 22, 2014 at 9:53 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, On Fri, Aug 22, 2014 at

Re: [Architecture] [AF] Datasources for PHP application type

2014-08-22 Thread Udara Liyanage
Hi Ajantan, Yes this can be done in PPaaS. We implemented web app which has simple REST api s to act as a metadata service. In addition we we extended cartridge agents of MySQL and PHP. MySQL cartridge sends its details(IP,credentials, some other data required) to metadata service by calling

Re: [Architecture] [AF] Datasources for PHP application type

2014-08-21 Thread Madhawa Bandara
Any thoughts please? On Tue, Aug 19, 2014 at 8:14 PM, Madhawa Bandara madh...@wso2.com wrote: Hi, Appfactory supports data sources to be defined and be used in the Java applications. In the process of enabling the PHP app type support in Appfactory, we need to allow users(i.e.developers)

Re: [Architecture] [AF] Datasources for PHP application type

2014-08-21 Thread Manjula Rathnayake
Hi Madhawa, We can keep these variables(string $dsn , string $user , string $password) in registry and use registry rest API to get values at runtime. So when you promote the application to Test and Production environments, application will pick the environment specific values. This will not

Re: [Architecture] [AF] Datasources for PHP application type

2014-08-21 Thread Roshan Wijesena
Hi Madhawa. We can keep these variables(string $dsn , string $user , string $password) in registry and use registry rest API to get values at runtime. So when you promote the application to Test and Production environments, application will pick the environment specific values. This will not

Re: [Architecture] [AF] Datasources for PHP application type

2014-08-21 Thread Ajanthan Balachandran
On Fri, Aug 22, 2014 at 9:53 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, On Fri, Aug 22, 2014 at 8:41 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Madhawa, Does PHP have native datasource support? For example[1]. I am -1 on doing it through Java. We must look at how

Re: [Architecture] [AF] Datasources for PHP application type

2014-08-21 Thread Manjula Rathnayake
Hi Ajanthan, On Fri, Aug 22, 2014 at 10:08 AM, Ajanthan Balachandran ajant...@wso2.com wrote: On Fri, Aug 22, 2014 at 9:53 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, On Fri, Aug 22, 2014 at 8:41 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Madhawa, Does PHP have