camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Cox <crankydi...@gmail.com>
Subject Producer or ProducerTemplate
Date Thu, 26 May 2011 20:41:14 GMT
Hi,

I've created a black-box request/response facade around a Camel route.  Think:

class BlackBox {
  function process(request: Request): Response
}

This thing lives in a spring environment and is getting the
CamelContext injected.  For each blackBox call, I use the context to:

1. Lookup an endpoint
2. Create producer from endpoint
3. Start producer
4. Create InOut Exchange
5. Process
6. Stop producer

My question is this.  Would it be better if a ProducerTemplate is injected?

Thanks.

Mime
View raw message