I am very new to Apache Camel an please dont mind if I am wrong at any point. I have two questions regarding apache camel.
- In apache camel examples in internet, I can only see hitting a web service and routing the same to another. How can I call a WebService, unmarshall the object and use in my application instead of routing to another.
- In the examples, for calling camel context, we have to call
CamelContext context = new DefaultCamelContext();
context.start()
and
context.stop()
Is there any other way in spring to create a Singleton object in the application context and autowire the bean in my service class in the enterprise project?
Also It will be very helpful if anyone could point me any resources such as pdf or websites that can help me with this.
Just declare camel context as a normal bean
And wire it in your service class