springoneplatform2016 / grussell-spring-kafka Goto Github PK
View Code? Open in Web Editor NEWSpring for Apache Kafka @SpringOnePlatform
License: Apache License 2.0
Spring for Apache Kafka @SpringOnePlatform
License: Apache License 2.0
Hey @garyrussell ,
I am awaiting for this repo from long back. When can it be available tentatively ?
Referring to app6 version, in org.s1p.app6.S1pKafkaApplication.TestBean#send method, KafkaTemplate#send(Message<?> message) is used. i.e the message is sent to the default topic configured in KafkaTemplate @ Bean. works fine.
Question: How can I send message to a given non-default topic using KafkaTemplate#send(String topic,Vdata). While trying to use it, I am getting compilation error as provided in attached screenshot.
And, if I try with un-typed KafkaTemplate like:-
public static class TestBean {
@Autowired
private KafkaTemplate template;
@Autowired
private ConfigProperties config;
public void send(Message<?> foo) {
this.template.send(config.getFooTopic(), foo);
}
}
I get a runtime error - Exception in thread "main" org.apache.kafka.common.errors.SerializationException: Can't convert value of class org.springframework.messaging.support.GenericMessage to class org.apache.kafka.common.serialization.StringSerializer specified in value.serializer
and the main thread just stays alive
The spring-kafka reference documentation is missing the details on pause/resume.
Also looking for more details on the polling/pause/resume caveat that you talked about in SpringOnePlatform2016.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.