Ich arbeite auf Springboot mit Apache Camel, so meine Frage ist, wie kann ich Code schreiben, um Idempotentconsumer mit JDBC-Repository mit Apache Kamel zu verwenden.Idempotent Verbraucher mit JDBC-Repository Apache Camel
0
A
Antwort
0
Alles, was Sie tun müssen, ist implementieren
#queryForInt(T key)
#insert(T key)
#delete(T key)
Methoden der AbstractJdbcMessageIdRepository
von camel-sql
definieren Sie Ihre Bohne
<bean id="idempotentRepository"
class="yourpackage.YourJDBCIdempotentRepository">
<property name="dataSource" ref="your-datasource-bean-ref"/>
</bean>
in Route hinzufügen
<route id="your-route">
<from uri="ftp:your-endpoint?idempotent=true&idempotentRepository=#idempotentRepository"/>
...
</route>
Verwandte Themen
- 1. Apache Kamel Idempotent Verbraucher Schlüssel Entfernung
- 2. Apache Camel Produzenten und Verbraucher
- 3. Apache Camel Restlet Verbraucher und Produzent
- 4. Clustered Apache Camel
- 5. Microservice mit Apache Camel
- 6. Spring Boot Kafka Camel Avro Verbraucher
- 7. Apache Camel: Verbrauchen von Bean
- 8. Apache Camel mit LinkedIn Api
- 9. Apache Camel Integration mit Elasticsearch
- 10. Zip-Dateien mit Apache Camel
- 11. Apache Camel RedisIdempotentRepository Konfiguration
- 12. Wie wird ElastiCache als Camel Idempotent Repository verwendet?
- 13. Apache Camel Event Store
- 14. Interzeptoren und Apache Camel
- 15. Apache Camel unmarshalling Daten
- 16. Apache Camel Konfiguration
- 17. Apache Camel MultiCasting - InvalidPayloadException
- 18. Apache Camel Testing Route
- 19. Apache Camel Split bereichern
- 20. Apache Camel XML Validator
- 21. Throttling FTP Polling Verbraucher mit Apache Kamel
- 22. Apache Camel MQXAQueueConnectionFactory
- 23. Concurrent Consumer von Seda in Apache Camel
- 24. Apache Camel Multithread Verarbeitung
- 25. Apache Camel - SedaEndpoint
- 26. Apache Camel bedingten Routing
- 27. Apache Camel Komponente Parameter
- 28. Apache Camel Routing
- 29. Kündigungsnachricht in Apache Camel
- 30. Strange Apache Camel Exception