Re: [Dev] Can we use property values for DBLookup/Report mediator connection details

2015-01-03 Thread Vanjikumaran Sivajothy
AFAIU, it is not possible to retrieve the value from the real time and add
it to the connection details.



On Sat, Jan 3, 2015 at 4:42 PM, Buddhima Wijeweera 
wrote:

> Hi Malintha,
>
> You can use datasources as an alternative.
>
> Resources:
> [1] https://docs.wso2.com/display/ESB470/Managing+Data+Sources
> [2] https://docs.wso2.com/display/ESB470/DBLookup+Mediator
>
> Thanks!
>
> On Sat, Jan 3, 2015 at 4:08 PM, Malintha Adikari 
> wrote:
>
>> Hi,
>>
>> I am using DBLookUP/Report mediator. There I want to get  DB connection
>> details (username, password...etc ) from a properties rather than
>> hard-coding it inside the mediator as follows
>>
>> 
>> 
>>
>>   abc123
>>   user123
>>   jdbc:mysql://10.0.0.1/mydb
>>   com.mysql.jdbc.Driver
>>
>> 
>>
>> Can I use values stored in properties for above connection details ?
>>
>> Regards,
>> Malintha Adikari
>>
>> --
>> *Malintha Adikari*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile: +94 71 2312958
>> Blog:http://malinthas.blogspot.com
>> Page:   http://about.me/malintha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we use property values for DBLookup/Report mediator connection details

2015-01-03 Thread Buddhima Wijeweera
Hi Malintha,

You can use datasources as an alternative.

Resources:
[1] https://docs.wso2.com/display/ESB470/Managing+Data+Sources
[2] https://docs.wso2.com/display/ESB470/DBLookup+Mediator

Thanks!

On Sat, Jan 3, 2015 at 4:08 PM, Malintha Adikari  wrote:

> Hi,
>
> I am using DBLookUP/Report mediator. There I want to get  DB connection
> details (username, password...etc ) from a properties rather than
> hard-coding it inside the mediator as follows
>
> 
> 
>
>   abc123
>   user123
>   jdbc:mysql://10.0.0.1/mydb
>   com.mysql.jdbc.Driver
>
> 
>
> Can I use values stored in properties for above connection details ?
>
> Regards,
> Malintha Adikari
>
> --
> *Malintha Adikari*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we use property values for DBLookup/Report mediator connection details

2015-01-03 Thread Malintha Adikari
Hi,

I am using DBLookUP/Report mediator. There I want to get  DB connection
details (username, password...etc ) from a properties rather than
hard-coding it inside the mediator as follows



   
  abc123
  user123
  jdbc:mysql://10.0.0.1/mydb
  com.mysql.jdbc.Driver
   


Can I use values stored in properties for above connection details ?

Regards,
Malintha Adikari

-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev