Hi Hasitha,

Check this
https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.database/src/main/java/org/wso2/carbon/ml/database/internal/MLDatabaseService.java#L63
to
https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.database/src/main/java/org/wso2/carbon/ml/database/internal/MLDatabaseService.java#L83

On Sat, Nov 21, 2015 at 9:24 PM, Hasitha Hiranya <[email protected]> wrote:

> Hi Anuruddha,
>
> Thanks for the response.
> Spotted following code,
>
>
> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.database/src/main/java/org/wso2/carbon/ml/database/internal/MLConfigurationParser.java
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-ml%2Fblob%2Fmaster%2Fcomponents%2Fml%2Forg.wso2.carbon.ml.database%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fml%2Fdatabase%2Finternal%2FMLConfigurationParser.java&sa=D&sntz=1&usg=AFQjCNH63jvktgn2Dmqgr2oQ6vOyi7Jvbg>
>
> Here we use javax.xml.bind.Unmarshaller
>
> With
>
>
> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.commons/src/main/java/org/wso2/carbon/ml/commons/domain/config/MLConfiguration.java
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-ml%2Fblob%2Fmaster%2Fcomponents%2Fml%2Forg.wso2.carbon.ml.commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fml%2Fcommons%2Fdomain%2Fconfig%2FMLConfiguration.java&sa=D&sntz=1&usg=AFQjCNF4WmeQsRT5aAVMMbLsd7bAoqIFhQ>
>
> Is this the way to decrypt the xml tags properly? Are we looking at the
> correct place?
>
> Thanks
>
> On Sat, Nov 21, 2015 at 6:46 PM, Anuruddha Premalal <[email protected]>
> wrote:
>
>> Hi Hiranya,
>>
>> [1] might help you.
>>
>> [1]
>> https://github.com/wso2/carbon-ml/tree/master/components/ml/org.wso2.carbon.ml.database
>>
>> On Sat, Nov 21, 2015 at 8:58 AM, Hasitha Hiranya <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> In our carbon product, we have a new database to deal with. We have the
>>> DB script that creates the necessary tables to work with the product in a
>>> specified  database pointed by
>>> <home>/repository/conf/datasources/masterdatasource.xml.
>>>
>>> If we write a code to source the DB Script, we need to
>>> read masterdatasource.xml file ourselves and decode necessary xml values
>>> from data source configuration. Is this the correct way of doing it?
>>>
>>> Or does Carbon have some interface or configuration object where it
>>> loads the configs in masterdatasource.xml so that our code can read from?
>>>
>>> Thanks
>>> --
>>> *Hasitha Abeykoon*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> *cell:* *+94 719363063*
>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94717213122
>> Web site : www.anuruddha.org
>>
>>
>
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>
>


-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to