Take a look at servicemix-eip which contains code you can reuse
and that do exactly what you want.

On 5/14/07, Sharon.Yin <[EMAIL PROTECTED]> wrote:

Hi, guys,

I'm trying to develop a SE which is a provider and consumer in the same
time, it receive request from BC and consume another SE to get a response,
then return final response to BC. Hence , in this case, I need to store
the
income request ME1 to a Map, then create a new ME2 to send to another SE,
when getting the response of ME2, I find the ME1 from Map, copy the
ME2.out
to ME1.out, then send back ME1 to BC.  Am I right?

I found that in the source code of servicemix, there are some of the
components are those SEs which also consume other service , like
CacheComponent, but they all use the "sendSync()" or synchronous
connection
with external service , so they don't have to store the former ME.

Is it the only way? Or I can use the way I described above?



Thanks.






--
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Reply via email to