forked from BigDataDevs/kafka-elasticsearch-consumer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kafka-es-context-public.xml
26 lines (20 loc) · 1.43 KB
/
kafka-es-context-public.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util"
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.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<import resource="common.xml"/>
<context:component-scan base-package="org.elasticsearch.kafka.indexer.service"/>
<util:properties id="applicationProperties"
ignore-resource-not-found="true"
location="classpath:config/kafka-es-indexer.properties file:${indexer.properties}"
/>
<bean id="messageHandler"
class="org.elasticsearch.kafka.indexer.service.impl.examples.SimpleMessageHandlerImpl"
scope="prototype"
/>
<bean id="kafkaESConsumerManager" class="org.elasticsearch.kafka.indexer.jobs.ConsumerManager"
p:consumerStartOptionsConfig="${offsets.config.path:${user.dir}/src/main/resources/config/kafka-es-indexer-start-options.config}"/>
</beans>