Thank you for all the help. I really appriciate it.

I looked into the pipeline before, I think I cannot use dynamic http
endpoint using pipeleine. In my scenario I parse the message header  in the 
bean class and then set the target uri of the http provider endpoint.
Depending on this URI, http end point calls required external web service as
follows
 outexchange.getInMessage().setProperty( 
                                      JbiConstants.HTTP_DESTINATION_URI, 
                                      uri); 

Could I use bean class to call http endpoint without using servicemix 
client ??
If I make my bean to handle inOut exchange and call
channel.send(outexchange), would that call http end point ?



iocanel wrote:
> 
> 
> gnanda wrote:
>> 
>>  I am sure I am doing something fundamentally wrong.  Please help
>> 
> 
> What I see fundamentally wrong is the fact that you are using the service
> mix client inside you bean endpoint. Bean Endpoints can be injected with
> the Delivery Chanel in order to send exchanges to the bus.
> 
> Let's assume that your bean accepts an exchange performs some processing
> on the exchange and you want to send that exchange to the http provider.
> Then you should make your bean to handle InOut Exchanges and
> alter your flow like this:
> 
> Jms Consumer -> Pipeline Endpoint (Transformer: Bean Endpoint, Target:
> Http Provider).
> 
> Have a look at the "Message Processing Bean" in 
> http://servicemix.apache.org/servicemix-bean.html ServiceMix Bean Examples 
> and at the pipeline in  http://servicemix.apache.org/servicemix-eip.html
> ServiceMix Eip Examples .
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/SMX4-handling-transaction-tp28199896p28241613.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to