Hi,

It is something like below.

public class FeedLauncher{
public static void main(String[] args){
   ApplicationContext context =
ClassPathXmlApplicationContext("spring/tc-feedloader-camel-spring-ctx.xml");
   SpringCamelContext camleContext = new SpringCamelContext();
   camelContext.setApplicationContext(context);
   camelContext.start();
}
tc-feedloader-camel-spring-ctx.xml
<beans ....schema>
<context:annotation-config/>
<import resource="classpath:spring/feedloader-camel-spring-ctx.xml"/>
<import
resource="classpath:spring/tc-feedloader-idempotent-spring-ctx.xml"/>
<import resource="classpath:spring/tc-feedloader-context.xml"/>
</bean>
tc-feedloader-context.xml
<beans..schema>
<context:annotation-config/>
<import resource="classpath:spring/${ENV}/tbus-mq-context.xml"/>
<context:component-scan
              base-package="<packagenames>"/>
</beans>


The route information is stored in database and using JPA we are extracting
and configuring it.

We are really stuck on this though it works very well with Camel 2.x

Thanks & Regards,
Sujeet







On Mon, Jun 5, 2023 at 7:37 PM ski n <raymondmees...@gmail.com> wrote:

> Hi Sujeet,
>
> Can you add the complete route, so it's clear where you are using it?
>
> Regards,
>
> Raymond
>
> On Mon, Jun 5, 2023 at 3:50 PM Sujeet Singh <sujeetkumarsi...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to migrate from Camel 2.x to
> > Camel 3.2.0. I have followed all the
> > guidelines but getting the below error
> > during startup.
> >
> > Caused by org.apache.camel.ResolveEndpointFailedException: Failed to
> > resolve endpoint: timer://notification?fixedRate=true&period=5000 due to:
> > Error binding property (period = 5000) with name: period on bean:
> > timer://notification?fixedRate=true&period=5000 with  value: 5000
> >
> > If I remove period from above endpoint it starts working. Same thing
> > happens for time, maxAge etc.
> >
> > Any help would be appreciated.
> >
> > Thanks & Regards,
> > Sujeet
> >
>

Reply via email to