Hi,

Does the following syntax work:

from("timer:notification?period={{time:1000}}")

pe 9. kesäk. 2023 klo 12.21 Sujeet Singh (sujeetkumarsi...@gmail.com) kirjoitti:
>
> Hi,
> The same issue was reported in stackoverflow 11 months ago.
>
> java - Using Timer Component with Apache Camel and the period Query
> Parameter results in error: Error binding property (period=10) with name:
> period on bean: - Stack Overflow
> <https://stackoverflow.com/questions/72708073/using-timer-component-with-apache-camel-and-the-period-query-parameter-results-i>
>
> Thanks & Regards,
> Sujeet
>
> On Thu, Jun 8, 2023 at 12:56 PM Sujeet Singh <sujeetkumarsi...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I switched to 3.14.8 from 3.2.0
> >
> > I am getting this extra information which was absent earlier
> >
> > Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
> > converter available to convert from type: java.lang.String to the required
> > type: java.time.Duration with value 5000
> >
> > Thanks & Regards,
> > Sujeet
> >
> > On Wed, 7 Jun 2023, 19:08 ski n, <raymondmees...@gmail.com> wrote:
> >
> >> It's route information that is needed. If the route xml is provided then
> >> it's easier to take a look at it.
> >>
> >> BTW are you really running it on 3.2.0? (It's best to use 3.20.5, or at
> >> least to go to 3.14.8)
> >>
> >> On Wed, Jun 7, 2023 at 3:30 PM Sujeet Singh <sujeetkumarsi...@gmail.com>
> >> wrote:
> >>
> >> > 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