If you want this mediator to act as a server, you will probably implement it
as another "higher-level" web service. This means it will be deployed on a
tomcat server, or similar.

In this scenario, requests will be served in different threads, so you could
let the virtual machine to handle the dispatching ;-)

If you need some kind of serialization, so you do need to execute all local
processing in a single thread, I guess you will have to implement your own
dispatcher to handle them.

If you do not really have the necessity of serializing all the processings,
I recommend you to use simple synchronization instead, and let the JVM do
the hard work for you. On the other hand, if you need transactional
processing, maybe your best option would be to implement it on session EJBs,
and let the EJB container deal with all that stuff.

Hope it helps,
Rodrigo Ruiz

----- Original Message -----
From: "Borut Bolcina" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 13, 2003 7:46 AM
Subject: WebServices chaining


> Hello.
>
> I have just finished reading theory at some web sites concerning Web
> Services talking to each other. Although I got some insight, it would
> be great if someone has experience or even some guidelines to kick
> start me. Lots of fog everywhere.
>
> I have successfully implemented clients and server, but I must
> implement a "mediator" - something that acts as server and client. This
> mediator does some processing and forwards the request to another web
> service. When the response is generated the mediator gets it, does some
> further processing and returns the response to the originator of the
> request - the original client.
>
> I guess this is not too hard to do, is it? The requests will be coming
> in "hopefully" at short intervals, but the response time varies from
> seconds to a minute. Obviously the responses won't be served on a FIFO
> basis. Will I have to manually "bind" the right requests with the right
> responses and what is there for me to identify them uniquely OR is
> there a mechanism that does this for me - some kind of dispatcher?
>
> I will appreciate some guidance very much.
>
> I wish you a nice and successful day!
>
> --bob
>

Reply via email to