Re: camel invoking rest endpoint two times

2016-04-09 Thread Narsi Nallamilli
The issue is the login rest endpoint is getting called twice when I invoke it
once by below process.

When I hit http://localhost:8080/login it calls the cxfrs server which calls
the cxfrs client according to below route.

 
 
 
 

Then the client is calling another cxfrs service which has got the actual
login endpoint implementation.
 
 
 


Now during the execution of the process the login endpoint is getting called
twice. 
 




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-invoking-rest-endpoint-two-times-tp5780019p5780838.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camel invoking rest endpoint two times

2016-04-09 Thread Claus Ibsen
Hi

Sorry but its hard to help you with such a problem. You paste a bunch
of configuration but dont talk so much about what rest is called two
times, and what you do.

Please dive more into your problem and try to narrow down what happens.

It may be that you are indeed calling it 2 times.

On Wed, Mar 30, 2016 at 12:06 PM, Narsi Nallamilli
 wrote:
> When I call aiRsServer, it call restClient which calls the nRsServer's login
> endpoint but the execution comes to the login endpoint implementation two
> time,
>
> Please find my soapcontext as below,
>
> 
> http://www.springframework.org/schema/beans;
> xmlns:cxf="http://camel.apache.org/schema/cxf;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> xmlns:http-conf="http://cxf.apache.org/transports/http/configuration;
> 
> xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration;
>  xmlns:sec="http://cxf.apache.org/configuration/security;
> xmlns:jaxrs="http://cxf.apache.org/jaxrs;
> xsi:schemaLocation="
>http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
>http://cxf.apache.org/transports/http-jetty/configuration
> http://cxf.apache.org/schemas/configuration/http-jetty.xsd
>http://cxf.apache.org/configuration/security
> http://cxf.apache.org/schemas/configuration/security.xsd
>http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
>http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>http://cxf.apache.org/jaxrs
> http://cxf.apache.org/schemas/jaxrs.xsd;>
> 
> 
>  ConnectionTimeout="1"/>
> 
>
>  class="org.apache.cxf.feature.LoggingFeature">
>
>  class="com.endpoint.impl.NILoginEndpointImpl"/>
> 
> 
>  class="com.processor.NIRestPostProcessor"/>
>  class="com.processor.AIRestPostProcessor"/>
>
>  address="http://localhost:9001/;
> loggingFeatureEnabled="true" loggingSizeLimit="-1">
> 
> 
> 
> 
> 
>  class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/>
> 
> 
>  address="/"
> loggingFeatureEnabled="true" loggingSizeLimit="-1" >
> 
>  class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/>
> 
> 
> 
> 
> 
> http://localhost:9001/;>
>  
>  class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/>
> 
> 
>xmlns="http://camel.apache.org/schema/spring;>
>  uri="cxfrs://bean://rsClient?throwExceptionOnFailure=false"
> id="aiRestProducer"/>
> 
>uri="cxfrs:bean:nRsServer?performInvocation=truepropagateContexts=true"/>
>   
> 
> 
> 
>   
>   
> 
> 
> 
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-invoking-rest-endpoint-two-times-tp5780019.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Re: camel invoking rest endpoint two times

2016-04-08 Thread Narsi Nallamilli
Please help on this issue.



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-invoking-rest-endpoint-two-times-tp5780019p5780743.html
Sent from the Camel - Users mailing list archive at Nabble.com.