标签: apache-camel
当我使用CamelContext.removeRouteDefinitions()删除路由时,我无法再次添加此路由,因为它显示Endpoint direct://something only allows 1 active consumer but you attempted to start a 2nd consumer.
Endpoint direct://something only allows 1 active consumer but you attempted to start a 2nd consumer.
这是正常的吗?如何从上下文中删除这些端点?
答案 0 :(得分:3)
您还需要删除端点,CamelContext上有API来删除端点。