Code Monkey home page Code Monkey logo

Comments (12)

davsclaus avatar davsclaus commented on May 28, 2024

See ticket: https://issues.apache.org/jira/browse/CAMEL-11126

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

Oh nice found a little bug in camel-core: https://issues.apache.org/jira/browse/CAMEL-11131

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

Okay got a working prototype, I need to polish up and make the code nicer in a few spots.

@kcbabo @chirino should a connector either always be scheduled like this, or should the citizen user be able to choose (maybe indirectly without knowing).

So I have this as a before example, notice how it uses the from timer

        from("timer:store?period=5000")
            .to("petstore?operationId=getInventory")
            .log("Pets in the store ${body}");

And now you can just do

        from("petstore?operationId=getInventory&period=2000")
            .log("Pets in the store ${body}");

And there is a default delay of 5000 so, you can do

        from("petstore?operationId=getInventory")
            .log("Pets in the store ${body}");

At this point the petstore connector is now forced into be a "from" only, but despite under the hood its actually a camel "to" but with a timer in from of it, eg from timer -> to petstore.

So in the ipaas it could be dual and made possible to use as a to endpoint as well. For example an pseudo example:

    from("trade-insight:bestPetsToBuy")
      .to("petstore?operationId=getPetsByIds")
      .log("Bye these pets ${body}")

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

Okay CAMEL-11192 merged upstream, which means we need a new Fuse Camel EA build to include this for the connectors to use.

from connectors.

jimmidyson avatar jimmidyson commented on May 28, 2024

FYI - EA build triggered at https://fusesource-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/JBoss%20Fuse%207.0/job/fuse-eap-7.0-release-pipeline/63/console

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

@jimmidyson ah just found a little bug in camel-core which we need to get fixed as needed by the trade-insight connector in binding mode. Can you cancel the build, and kick a new when I comment here again?

from connectors.

jimmidyson avatar jimmidyson commented on May 28, 2024

@davsclaus Cancelled. Let me know when you need a new one kicking. We should automate this...

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

The bug/issue which we need: https://issues.apache.org/jira/browse/CAMEL-11133

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

Okay pushed fix for Camel upstream. Not sure how fast fuse-camel sync from ASF.

And there is a PR here how to use the new schedule based as connector
#33

That is using 2.19.0-SNAPSHOT until we got that EA build.

The last commit you MUST ensure is in the EA is
apache/camel@9531405

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

Ah the jboss fuse camel need to sync more commits, its not up to date
https://github.com/jboss-fuse/camel/commits/master

from connectors.

davsclaus avatar davsclaus commented on May 28, 2024

Its up to date now

from connectors.

kcbabo avatar kcbabo commented on May 28, 2024

Thanks, Claus! I think this is consistent with the spirit of what we want - basically treating a polling connector as a single thing vs. multiple things (timer connector + endpoint connector).

from connectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.