Service invocation ways

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Service invocation ways

Varun Bhansaly
Hi,
I am implementing the following scenario -

ServiceA needs to call 3 services,

1. ServiceB,
2. ServiceC,
3. (optional) but if at all reqd. then would be either of ServiceD or
ServiceE.


one of the ways is to use the dispatcher.runsync()/ runasync(). What are the
possible ways to implement such scenarios ?
If some1 has any suggestions plz post.

--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Service invocation ways

Vikas Raikwar
If you need another way to call three services(one optional) then it can be
done through chaining.



On Tue, Jun 8, 2010 at 11:07 PM, varun bhansaly <[hidden email]> wrote:

> Hi,
> I am implementing the following scenario -
>
> ServiceA needs to call 3 services,
>
> 1. ServiceB,
> 2. ServiceC,
> 3. (optional) but if at all reqd. then would be either of ServiceD or
> ServiceE.
>
>
> one of the ways is to use the dispatcher.runsync()/ runasync(). What are
> the
> possible ways to implement such scenarios ?
> If some1 has any suggestions plz post.
>
> --
> Regards,
> Varun Bhansaly
>
Reply | Threaded
Open this post in threaded view
|

Re: Service invocation ways

Varun Bhansaly
Thanks Vikas, can u help further by giving an example on chaining, or where
its being already used.

On Wed, Jun 9, 2010 at 10:16 AM, Vikas Raikwar <[hidden email]>wrote:

> If you need another way to call three services(one optional) then it can be
> done through chaining.
>
>
>
> On Tue, Jun 8, 2010 at 11:07 PM, varun bhansaly <[hidden email]>
> wrote:
>
> > Hi,
> > I am implementing the following scenario -
> >
> > ServiceA needs to call 3 services,
> >
> > 1. ServiceB,
> > 2. ServiceC,
> > 3. (optional) but if at all reqd. then would be either of ServiceD or
> > ServiceE.
> >
> >
> > one of the ways is to use the dispatcher.runsync()/ runasync(). What are
> > the
> > possible ways to implement such scenarios ?
> > If some1 has any suggestions plz post.
> >
> > --
> > Regards,
> > Varun Bhansaly
> >
>



--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Service invocation ways

Kumaraswamy nandipati
In reply to this post by Vikas Raikwar
I think you can achieve through ECAs. For this, you can refer any secas.xml
in ofbiz.

On Wed, Jun 9, 2010 at 10:16 AM, Vikas Raikwar <[hidden email]>wrote:

> If you need another way to call three services(one optional) then it can be
> done through chaining.
>
>
>
> On Tue, Jun 8, 2010 at 11:07 PM, varun bhansaly <[hidden email]>
> wrote:
>
> > Hi,
> > I am implementing the following scenario -
> >
> > ServiceA needs to call 3 services,
> >
> > 1. ServiceB,
> > 2. ServiceC,
> > 3. (optional) but if at all reqd. then would be either of ServiceD or
> > ServiceE.
> >
> >
> > one of the ways is to use the dispatcher.runsync()/ runasync(). What are
> > the
> > possible ways to implement such scenarios ?
> > If some1 has any suggestions plz post.
> >
> > --
> > Regards,
> > Varun Bhansaly
> >
>



--
Thanks,
Kumaraswamy.N
91-9866805250.
Reply | Threaded
Open this post in threaded view
|

Re: Service invocation ways

Vikas Raikwar
In reply to this post by Varun Bhansaly
You can find chaining in ecommerce for request-map
uri="enterCreditCardAndBillingAddress".

On Wed, Jun 9, 2010 at 10:22 AM, varun bhansaly <[hidden email]> wrote:

> Thanks Vikas, can u help further by giving an example on chaining, or where
> its being already used.
>
> On Wed, Jun 9, 2010 at 10:16 AM, Vikas Raikwar <[hidden email]
> >wrote:
>
> > If you need another way to call three services(one optional) then it can
> be
> > done through chaining.
> >
> >
> >
> > On Tue, Jun 8, 2010 at 11:07 PM, varun bhansaly <[hidden email]>
> > wrote:
> >
> > > Hi,
> > > I am implementing the following scenario -
> > >
> > > ServiceA needs to call 3 services,
> > >
> > > 1. ServiceB,
> > > 2. ServiceC,
> > > 3. (optional) but if at all reqd. then would be either of ServiceD or
> > > ServiceE.
> > >
> > >
> > > one of the ways is to use the dispatcher.runsync()/ runasync(). What
> are
> > > the
> > > possible ways to implement such scenarios ?
> > > If some1 has any suggestions plz post.
> > >
> > > --
> > > Regards,
> > > Varun Bhansaly
> > >
> >
>
>
>
> --
> Regards,
> Varun Bhansaly
>
Reply | Threaded
Open this post in threaded view
|

Re: Service invocation ways

Varun Bhansaly
Hi Vikas, Thanks again.
In the below link, eca for storeOrder suites my requirement.
http://svn.apache.org/repos/asf/ofbiz/trunk/applications/order/servicedef/secas.xml


On Wed, Jun 9, 2010 at 12:15 PM, Vikas Raikwar <[hidden email]>wrote:

> You can find chaining in ecommerce for request-map
> uri="enterCreditCardAndBillingAddress".
>
> On Wed, Jun 9, 2010 at 10:22 AM, varun bhansaly <[hidden email]>
> wrote:
>
> > Thanks Vikas, can u help further by giving an example on chaining, or
> where
> > its being already used.
> >
> > On Wed, Jun 9, 2010 at 10:16 AM, Vikas Raikwar <
> [hidden email]
> > >wrote:
> >
> > > If you need another way to call three services(one optional) then it
> can
> > be
> > > done through chaining.
> > >
> > >
> > >
> > > On Tue, Jun 8, 2010 at 11:07 PM, varun bhansaly <[hidden email]>
> > > wrote:
> > >
> > > > Hi,
> > > > I am implementing the following scenario -
> > > >
> > > > ServiceA needs to call 3 services,
> > > >
> > > > 1. ServiceB,
> > > > 2. ServiceC,
> > > > 3. (optional) but if at all reqd. then would be either of ServiceD or
> > > > ServiceE.
> > > >
> > > >
> > > > one of the ways is to use the dispatcher.runsync()/ runasync(). What
> > are
> > > > the
> > > > possible ways to implement such scenarios ?
> > > > If some1 has any suggestions plz post.
> > > >
> > > > --
> > > > Regards,
> > > > Varun Bhansaly
> > > >
> > >
> >
> >
> >
> > --
> > Regards,
> > Varun Bhansaly
> >
>



--
Regards,
Varun Bhansaly