On Wed, Jun 29, 2011 at 4:40 PM, Tharindu Mathew <[email protected]> wrote:

>
>
> On Wed, Jun 29, 2011 at 4:36 PM, Anjana Fernando <[email protected]> wrote:
>
>> Hi Tharindu,
>>
>> On Wed, Jun 29, 2011 at 4:28 PM, Tharindu Mathew <[email protected]>wrote:
>>
>>> Anjana,
>>>
>>> Can we make all these data sources (RDBMS/Excelt/GDocs) part of the data
>>> sources component?
>>>
>>>
>>
>>> Essentially, anyone else who wants to access these will be copying the
>>> same code without re-using.
>>>
>>
>> Yeah, we maybe able to add it to that itself, that is what I earlier meant
>> also to put it to a generate component. But data sources component is
>> specifically used for RDBMS, where a DataSource object can be created and
>> bound to JNDI or use as an in memory object to be used by others. You will
>> not do the same with other data sources. But the requirement is a simple API
>> to access those other data source types. If there's a requirement for a data
>> source like Excel/GSpread to be globally shared and used by several places,
>> then we will need to add it to a place like the data source component and
>> give suitable UIs and so on.
>>
>> +1 if you can do this. Currently, Manu is having this exact requirement as
> we are trying to support all data sources when generating visualizations.
>

Yeah, in the DSS roadmap, we've plans on extending the data source support
and this was one part of it, which was data source re-use, so that means,
defining them globally. Didn't really finalise on the specifics on how we
are going to do it, if it's a immediate requirement for BAM, I suggest, you
directly use POI for now, and later move into the generic API when it's
implemented.

Cheers,
Anjana.


>
> I'm sure anyone who would deal with data sources would have this
> requirement.
>
>> Cheers,
>> Anjana.
>>
>>
>>>
>>>
>>> On Wed, Jun 29, 2011 at 4:04 PM, Anjana Fernando <[email protected]>wrote:
>>>
>>>> Hi,
>>>>
>>>> No, you can't use the data source component to access those. Either
>>>> you've to use data services or use Apache POI (or Google Spreadhsheet API,
>>>> if you're talking about those) to access those. DSS just have our own data
>>>> service config implementation to support it as a data source for a data
>>>> service. You can check the Excel/GSpreadQuery|Config classes in data
>>>> services core component. Those are thin wrappers on top of their respective
>>>> external APIs. Using DSS specific classes will make DSS components a direct
>>>> dependency, so you may want to do your own implementation based on that
>>>> code, and even make it a generic component, so others may also use it and 
>>>> we
>>>> can also migrate to that code later.
>>>>
>>>> Cheers,
>>>> Anjana.
>>>>
>>>>
>>>> On Wed, Jun 29, 2011 at 3:35 PM, Manu Perera <[email protected]> wrote:
>>>>
>>>>> it is required to read data (and schema) from spreadsheets for BAM's
>>>>> new visualization tool.
>>>>> I am currently using "Data Sources" component to access RDBMS, is it
>>>>> possible to use same API's to access spreadsheets ?
>>>>> if not what is the best way to reuse the Data Services' Implantation
>>>>> of spreadsheet based data sources.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Anjana Fernando*
>>>> Senior Software Engineer
>>>> WSO2 Inc. | http://wso2.com
>>>> lean . enterprise . middleware
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Software Engineer
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> Regards,
>
> Tharindu
>
>


-- 
*Anjana Fernando*
Senior Software Engineer
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to