Hi Asankha,

On 9/28/07, Asankha C. Perera <[EMAIL PROTECTED]> wrote:
>
> Hi Eric
> > I wished for JDBC as a transport to the effect of being able to
> write/read
> > from a database, and poll the database
> > for a change in some table and provide some notification .If the 2
> mediators
> > you mentioned are capable of doing that
> > then that would be great.
> >
> Currently you cannot 'poll' a table with the mediators.. the problem or
> difficulty in writing JDBC as a "transport" is that how you would
> convert a row (or the result of a query which may be a join for example)
> into a "message". If we are to write this as a generic transport I
> believe different users may want to transform a row via multiple ways.


Just thinking aloud ,my thoughts are these ...
To write to a 'JDBC' endpoint ,
1) expose a Proxy endpoint
2) In the proxy wsdl, describe the schema for the output message of the
operation(which denotes the database select update etc query operation)
3) have the implementation of the DB mediators to transform the response to
the schema defined in the proxy wsdl; The proxy wsdl is part of the message
context i believe.

Of course this might work for a simple case.I am not wise enough to think of
compelx cases where this would fail.

And I still have to look into Data Services that you pointed to...

Thanks again,
Eric


It is too late to incorporate this into 1.1 as a transport anyway, but
> if you require this functionality, I could point you to Data Services -
> these are services that essentially transform JDBC queries into a
> service you can then invoke (see http://wso2.org/library/2617,
> http://wso2.org/library/2631) Couple this with the new "Job" support
> that Synapse now offers for scheduling tasks, and I believe you will be
> able to build this same functionality for your requirements!
>
> asankha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to