Re: Camel JAXB - jaxb.index not found

2017-03-20 Thread Onder SEZGIN
this is not a camel question. though i can guess it is a jaxb issue. it seems you have not generated pojos using your xsd schema. you should do it properly, them jaxb will recognize your pojos. On Tue, 21 Mar 2017 at 06:35, contactreji wrote: > oops. sorry i meant jaxb.index. Ignore the typo

Re: Camel JAXB - jaxb.index not found

2017-03-20 Thread contactreji
oops. sorry i meant jaxb.index. Ignore the typo "index.jaxb" - Reji Mathews Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & Jboss Fuse ESB | Mule ESB ) LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a Twitter - reji_mathews -- View this message in c

Camel JAXB - jaxb.index not found

2017-03-20 Thread contactreji
Hello guys Am trying a POC to convert a Pojo into equivalent XML using jaxb. I have all my annotation in place on the classes and added index.jaxb to the package. My route looks like below. not sure why it happens, but its still crying out for ObjectFactory or index.jaxb @Component public cla

Re: testing routes when using spring boot

2017-03-20 Thread Minh Tran
Try enabling debug logging on org.springframework.boot and see whether it is skipping the CamelAutoConfiguration class and why. > On 21 Mar 2017, at 12:01 pm, 129073.d.0002 wrote: > > I have this dependency in my pom > > > org.apache.camel >

Re: testing routes when using spring boot

2017-03-20 Thread 129073.d.0002
I have this dependency in my pom org.apache.camel camel-spring-boot-starter 2.18.3 but when I tried to list all spring components, there is no CamelContext -component !? I use @SpringBootA

Re: testing routes when using spring boot

2017-03-20 Thread Minh Tran
Have you got the right camel version? From memory, this class is fairly new so that could explain the missing class problem. As to the missing CamelContext bean, sounds like it isn’t being created automatically and that could be because Spring Boot isn’t doing it’s magic with the CamelAutoConfi

Re: testing routes when using spring boot

2017-03-20 Thread 129073.d.0002
I have camel-test-spring in my pom but class not found. And I tried @Autowire CamelContext but component does not exist. So I keep on debugging my setup. Thanks for your answer, now I know that there is something else wrong with my project. -- View this message in context: http://camel.465427

Re: testing routes when using spring boot

2017-03-20 Thread Minh Tran
Hi You can find it in the camel-test-spring.jar. So add that dependency in your pom. The way to get the camel context would be just to inject it in just like any other spring bean. For example: @Autowired private CamelContext context; > On 21 Mar 2017, at 11:15 am, 129073.d.0002 wrote: > >

testing routes when using spring boot

2017-03-20 Thread 129073.d.0002
I found this Camel Spring Boot test "https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot";. It uses test setup: @RunWith(CamelSpringBootRunner.class) @SpringBootTest(classes = SampleCamelApplication.class) public class SampleCamelApplicationTest { @Autowired p

Exception handling with Hystrix EIP

2017-03-20 Thread Priyanka Gopinath
Hi, I am trying to enable hystrix in our camel application and I am trying to understand how the exceptions are dealt when using the Hystrix EIP . When we set the timeOut to a smaller value than the endpoint call, there is no exception thrown that we can deal with. I need a handle to this excep

Message is lost while the connection to ActiveMQ is refreshed

2017-03-20 Thread hammod
I am receiving a message from a client using a netty interface and this message should be sent to ActiveMQ to be saved. All is good but if I dropped the connection between camel and ActiveMQ while camel is running (by disconnecting the network or stopping the mq for example), camel is receiving the