[snip]
Luciano Resende wrote:
I'm fine with most of what is said here, one component per database
and one service per table is fine. In this context, JDBC is probably
good enough, except for handling OCC as the data or feeds are going to
work in a disconnected way.
I also see this evolving in the near future, to be more sophisticated,
providing support for all CRUD operations and pre-defined queries
where data from multiple table are combined together;
Yes we could expose stored procedures as service operations for example.
Is that what you were thinking about?
- Taking and returning an StAX XMLStreamReader, as it'll be sufficient
(and really lightweight) if the Tuscany databinding framework can
convert that XML data to whatever databinding is needed by other
components in the assembly.
Could you elaborate more ? Is your proposal to, internally, use StAX
XMLStreamReader, but no changes on the client side, is this right ?
Would it cause too much transformation JDBC -> XMLStreamReader -> Some
kind of object and vice versa ? What benefits you see here ?
I see obvious benefits when the data eventually needs to presented in
XML. I have a few examples in mind... Web Services, Feeds, integration
with XQuery, BPEL :) In all these cases we'll avoid having to populate a
throw-away object model and convert it later to XML.
This should help as well when the data needs to be presented to a
component as an SDO, JAxB object or XMLBean. I'm hoping that the Tuscany
databinding framework can pull the data out of the XMLStreamReader to
populate the object model as necessary.
I'm also thinking that we'll avoid buffering or transformation
performance issues with big volumes of data if XMLStreamReader.next()
and the various XMLStreamReader.getMethods() can just pull the data out
of JDBC as needed for example.
What kind of transformation were you thinking about?
Do we also need a Feed databinding to help expose data as feeds ?
I'm not sure yet. It might be simpler to have the Atom and RSS bindings
just use XML instead of yet again another databinding with Rome (Rome is
the library that we are currently using for Atom and RSS feeds).
Also Apache Abdera (an open source implementation of Atom in the Apache
incubator) is just getting their 0.3.0 release out, and it looks like
they support StAX. It would be interesting to start a discussion with
them...
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]