You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sandeep reddy <sa...@in2m.com> on 2008/06/03 13:55:29 UTC

Re: Problems with camel comunication


Hi gnodet,

     What ever ICAR is facing problem with his initial message even i am
facing similar to it.
My Case is:
     
              Http Consumer Su (in-out)--> Camel Su ---> Http Provider su
(in-out) --> external application

initially i tried camel su using xml configuration. So even my application
sends response back my Http and 
camel are not able to get that.Then i tried using Java file looks like:

              from("").to("?mep=in-out") 

Then it's working fine.But my question is that can't i achieve same thing
using Xml configuration instead
of Java file.



gnodet wrote:
> 
> Change the thread pool configuration to allow more than 4 threads per
> component...
> See http://incubator.apache.org/servicemix/thread-pools.html
> You can change the values in conf/servicemix.properties.
> 
> On 9/20/07, ICAR <ic...@gmail.com> wrote:
>>
>> Our Components are like the following :
>>     from("jbi:service:http://icar.unibas.it/FreESBee/CamelTest1")
>>     .process(new ProcessorEnricher())
>>    
>> .to("jbi:service:http://icar.unibas.it/FreESBee/CamelTest2?mep=in-out");
>>
>>     private class ProcessorEnricher implements Processor{
>>         public void process(Exchange exchange) throws Exception {
>>             logger.info("Camel N");
>>         }
>>     }
>>
>> If the message through 4 components, we see correctly the log on screen :
>>
>> Camel 1
>> Camel 2
>> Camel 3
>> Camel 4
>>
>> Else if we have 5 components, we see the first 4 log message, but not the
>> fifth. After a moment receive the exception "Exchange Not Found"
>>
>>
>> Can you explain the "with more than four it doesn't work" sentence ?
>> What happens ?
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-camel-comunication-tf4482226s12049.html#a12798862
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Problems-with-camel-comunication-tp12781429p17621872.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Problems with camel comunication

Posted by Guillaume Nodet <gn...@gmail.com>.
Why ? The in-out mep can be specified on the endpoint uri in the xml
configuration ?
Do you have another problem ?

On Tue, Jun 3, 2008 at 1:55 PM, sandeep reddy <sa...@in2m.com> wrote:
>
>
> Hi gnodet,
>
>     What ever ICAR is facing problem with his initial message even i am
> facing similar to it.
> My Case is:
>
>              Http Consumer Su (in-out)--> Camel Su ---> Http Provider su
> (in-out) --> external application
>
> initially i tried camel su using xml configuration. So even my application
> sends response back my Http and
> camel are not able to get that.Then i tried using Java file looks like:
>
>              from("").to("?mep=in-out")
>
> Then it's working fine.But my question is that can't i achieve same thing
> using Xml configuration instead
> of Java file.
>
>
>
> gnodet wrote:
>>
>> Change the thread pool configuration to allow more than 4 threads per
>> component...
>> See http://incubator.apache.org/servicemix/thread-pools.html
>> You can change the values in conf/servicemix.properties.
>>
>> On 9/20/07, ICAR <ic...@gmail.com> wrote:
>>>
>>> Our Components are like the following :
>>>     from("jbi:service:http://icar.unibas.it/FreESBee/CamelTest1")
>>>     .process(new ProcessorEnricher())
>>>
>>> .to("jbi:service:http://icar.unibas.it/FreESBee/CamelTest2?mep=in-out");
>>>
>>>     private class ProcessorEnricher implements Processor{
>>>         public void process(Exchange exchange) throws Exception {
>>>             logger.info("Camel N");
>>>         }
>>>     }
>>>
>>> If the message through 4 components, we see correctly the log on screen :
>>>
>>> Camel 1
>>> Camel 2
>>> Camel 3
>>> Camel 4
>>>
>>> Else if we have 5 components, we see the first 4 log message, but not the
>>> fifth. After a moment receive the exception "Exchange Not Found"
>>>
>>>
>>> Can you explain the "with more than four it doesn't work" sentence ?
>>> What happens ?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Problems-with-camel-comunication-tf4482226s12049.html#a12798862
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Problems-with-camel-comunication-tp12781429p17621872.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



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