You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Raidwan <Ra...@hotmail.com> on 2011/10/28 14:32:55 UTC
HttpProviderMarshaler : change URI in Multithread
Hi all,
I'm using servicemix-http 2010.01, but i think it's the same in new version:
if i read correctly the servicemix source code, the instance of a marshaler
is unique for the endpoint instance.
In this case when we change the URI in the marshaler depending of the
message content we should have some multi-thread problems. Some message will
be sent to a bad URI...
Any idea? suggestions?
Perhaps the mashaler instance has to be threadlocal in the endpoint...
Regards,
Raid
--
View this message in context: http://servicemix.396122.n5.nabble.com/HttpProviderMarshaler-change-URI-in-Multithread-tp4945793p4945793.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: HttpProviderMarshaler : change URI in Multithread
Posted by Raidwan <Ra...@hotmail.com>.
Thanks for your answer...
I was thinking about using camel-http... but i need to refactor my
marshaller in camel route and play with try/catch and redeliveryPolicy ...
--
View this message in context: http://servicemix.396122.n5.nabble.com/HttpProviderMarshaler-change-URI-in-Multithread-tp4945793p4946302.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: HttpProviderMarshaler : change URI in Multithread
Posted by aj...@virginia.edu.
I don't know enough of the servicemix-http code to answer your question, but I can tell that I have used Camel HTTP and Jetty endpoints to do something like what you describe. They can have thread-local URLS based on message headers.
---
A. Soroka
Online Library Environment
the University of Virginia Library
On Oct 28, 2011, at 8:32 AM, Raidwan wrote:
> Hi all,
>
> I'm using servicemix-http 2010.01, but i think it's the same in new version:
> if i read correctly the servicemix source code, the instance of a marshaler
> is unique for the endpoint instance.
>
> In this case when we change the URI in the marshaler depending of the
> message content we should have some multi-thread problems. Some message will
> be sent to a bad URI...
>
> Any idea? suggestions?
>
> Perhaps the mashaler instance has to be threadlocal in the endpoint...
>
> Regards,
>
> Raid
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/HttpProviderMarshaler-change-URI-in-Multithread-tp4945793p4945793.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.