12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
- http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
- <context:component-scan base-package="com.palmnest.model.kafka"></context:component-scan>
- <bean id="kafkaProducerServer" class="com.palmnest.model.kafka.KafkaProducerServer">
- <property name="properties">
- <props>
- <prop key="topic">buildwindow</prop>
- <prop key="bootstrap.servers">172.25.220.213:9092</prop>
- <prop key="acks">all</prop>
- <prop key="key.serializer">org.apache.kafka.common.serialization.StringSerializer
- </prop>
- <prop key="value.serializer">org.apache.kafka.common.serialization.StringSerializer
- </prop>
- <prop key="buffer.memory">33554432</prop>
- </props>
- </property>
- </bean>
- <bean id="kafkaConsumerServer" class="com.palmnest.model.kafka.KafkaConsumerServer">
- <property name="props">
- <props>
- <prop key="topic">buildwindow</prop>
- <prop key="bootstrap.servers">172.25.220.213:9092</prop>
- <prop key="group.id">group1</prop>
- <prop key="enable.auto.commit">true</prop>
- <prop key="auto.commit.interval.ms">1000</prop>
- <prop key="session.timeout.ms">30000</prop>
- <prop key="key.deserializer">org.apache.kafka.common.serialization.StringDeserializer
- </prop>
- <prop key="value.deserializer">org.apache.kafka.common.serialization.StringDeserializer
- </prop>
- </props>
- </property>
- </bean>
- </beans>
|