It would make things bit more simple if it's for a same type of operation.
But the response should have some value which enable client to identify
which part of the response came in for which request.

BTW on a different node, we have server side batch support for in-only
operations. But it's not useful on this context.

/sumedha


On Mon, Feb 28, 2011 at 7:08 AM, Srinath Perera <[email protected]> wrote:

> Hi Ruchira,
>
> It is useful, but the trick is that in DS have to read and understand
> the messages and at best have to compared it against the defined
> schema and know that this list of service IDs are for multiple
> invocations not the single one. Can be done, but I am not sure the
> complexity is worth it.
>
> --Srinath
>
> On Mon, Feb 28, 2011 at 2:57 AM, Ruchira Wageesha <[email protected]>
> wrote:
> > Hi,
> >
> > Is it possible to write a Data Service which gives the output set for a
> set
> > of inputs(something like batch in-out) in a single invocation? This is my
> > scenario.
> >
> > There is an operation named "getLatestDataForService" in BAMStatQueryDS
> > which accepts a serviceId and returns the response. If I have N number of
> > services, then is it possible to send 1, 2, 3, .... N service ids at once
> to
> > the DS and get the response, rather invoking them separately? Even in a
> > request to ebay or amazon, we can specify set of itemId at once. So is it
> > possible to implement that via a DS?
> >
> > At the moment, BAM has wrapped these iterative calls into a java class,
> > which then accesses the above operation once for each serviceID using
> local
> > transport. At the end, it could be a single operation of another service,
> > but can't we use just DS for that?
> >
> > Thanks,
> > Ruchira
> >
> > --
> > Ruchira Wageesha
> > Software Engineer - WSO2 Inc. www.wso2.com
> >
> > Email: [email protected] Blog: [email protected]
> > Mobile: +94771083016, +94714439028
> >
> > Lean . Enterprise . Middleware
> >
> > _______________________________________________
> > Carbon-dev mailing list
> > [email protected]
> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
>
>
>
> --
> ============================
> Srinath Perera, Ph.D.
>   Senior Software Architect, WSO2 Inc.
>   Visiting Lecturer, University of Moratuwa
>   Member, Apache Software Foundation
>   Research Scientist, Lanka Software Foundation
>   Blog: http://srinathsview.blogspot.com/
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to