2015-12-17 43 views
2

我目前使用的是Spring Tool Suite(STS)(版本:3.7.2.RELEASE,構建ID:201511261048 ,平臺:Eclipse Mars.1(4.5.1)),Spring Integration 4.2.0.RELEASE和spring-integration-kafka 1.3.0.RELEASE。彈簧工具套件的彈簧集成圖不顯示「int-kafka:message-driven-channel-adapter」圖形

我有一個包含「集成」和「集成/ kafka」命名空間的Spring配置XML文件。我在配置文件中添加了「int-kafka:message-driven-channel-adapter」。當我進入集成圖標籤時,我沒有看到該組件的圖標/圖形。

示例配置文件:

<?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:int="http://www.springframework.org/schema/integration" 
xmlns:int-kafka="http://www.springframework.org/schema/integration/kafka" 
xmlns:task="http://www.springframework.org/schema/task" 
    xsi:schemaLocation=" 
     http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms.xsd 
     http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd 
     http://www.springframework.org/schema/integration/kafka http://www.springframework.org/schema/integration/kafka/spring-integration-kafka.xsd 
     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/task http://www.springframework.org/schema/task/spring-task.xsd"> 

    <int-kafka:message-driven-channel-adapter 
      id="kafkaMessageDrivenChannelAdapter" 
      channel="kafkaSubSpringExecutorChannel" 
      connection-factory="kafkaConnectionFactory" 
      offset-manager="kafkaTopicOffsetManager" 
      max-fetch="100" 
      topics="${kafka.test.topic}"/> 
    <int:channel id="kafkaSubSpringExecutorChannel" /> 
</beans> 

我相信這是一個相對較新的組件。它可以添加到圖形編輯器嗎?

+0

是的,對這個元素的支持丟失了......將它添加到3.7.3版本中。請在Gary建議的答案中提出一個問題。 – aboyko

+0

@ Gary-Russell創建JIRA [STS-4295](https://issuetracker.springsource.com/browse/STS-4295) –

回答

0

spring-integration-kafka項目仍被視爲主要Spring Integration項目的擴展。我們通常在STS中不支持擴展。

但是,我們計劃在明年的某個時候將其納入核心項目。

與此同時,嘗試打開'改進'JIRA Issue in the STS Issue Tracker要求STS團隊考慮儘早添加它。

如果您打開一張票,請確保包含對此問題/答案的參考。