Comments (12)
See ticket: https://issues.apache.org/jira/browse/CAMEL-11126
from connectors.
Oh nice found a little bug in camel-core: https://issues.apache.org/jira/browse/CAMEL-11131
from connectors.
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.
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.
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.
@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.
@davsclaus Cancelled. Let me know when you need a new one kicking. We should automate this...
from connectors.
The bug/issue which we need: https://issues.apache.org/jira/browse/CAMEL-11133
from connectors.
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.
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.
Its up to date now
from connectors.
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)
- Twitter Mentions arrive in reverse date order HOT 8
- Support Human friendly syntax in Timer
- Support JSON based models in salesforce connector HOT 2
- salesforce connector not working HOT 1
- Unrecognized field "optionalPrefix" HOT 3
- Upgrade Camel Version to pull in Extensions HOT 7
- Pull some build sections in parent pom if possible
- Add DTOs to Salesforce json connectors that expect a simple ID input body HOT 1
- Refactor the SQL Stored connector HOT 2
- SQL Stored connector has `${project.version}` in JSON descriptors
- Twitter mention error: "Method with name: null not found" HOT 4
- Build fails if clean is not specified.
- Stub test connectors HOT 1
- Create initial Swagger connector HOT 1
- Create an AWS S3 Copy Object Connector HOT 1
- Create an AWS S3 Get Object connector HOT 2
- Create an AWS S3 Poll Bucket Connector HOT 4
- Add null checks to Salesforce connectors
- Improve packaging and building
- AWS S3 delete object connector
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectors.