Hi Matt, 

Still unable to make progress here. I have a simple SOAP 12 endpoint
defined, and this is working if I send a request. 

        @Endpoint 
        public class HeartbeatEndpoint {  
                @Action("http://myevent/Heartbeat";) 
                @ResponsePayload 
                public HeartbeatResponse Heartbeat(@RequestPayload Heartbeat
arg) { 
                        HeartbeatResponse response = new
HeartbeatResponse(); 
                        response.setHeartbeatResult(5); 
                        System.out.println("HEART BEAT"); 
                        return response; 
                } 
        } 

I setup a route earlier

    @Component
    public class MyRouter extends SpringRouteBuilder {
        @Override
        public void configure() throws Exception {
            
from("spring-ws:uri:http://myevent/Heartbeat?endpointMapping=#endpointMapping";)
             .to("log:output?showAll=true")
             .to("direct-vm:processOrder");
    }

I tried all different from patterns but get unresolved endpoint exceptions. 
When I post a message to the endpoint I use "http://localhost:8080/myevent";
but this is also not working. If I use
from("spring-ws:http://localhost:8080/myevent";), this will start but when I
post a message, it arrives at the endpoint and is not processed by the camel
endpoint. 

This is how I setup the route

    @Bean
    public CamelContext camelContext() throws Exception {
        CamelContext camelContext = new
SpringCamelContext(applicationContext); 
        camelContext.addRoutes(new CTIPsRouter()); 
        return camelContext;
    }




--
View this message in context: 
http://camel.465427.n5.nabble.com/Shared-Camel-Context-tp5777066p5777096.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to