Automatic deploy of new modules in Spring XD

会有一股神秘感。 提交于 2019-12-11 11:57:45

问题


Does Spring XD support automatic deployment of new modules?

Looking at the documentation, it seems that you need to restart the server to deploy a new module added in ${xd.home}/lib directory.

If not supported, is it in the roadmap?

Thanks.


回答1:


Hot detection of new modules should be working, provided that you deploy them to the ${xd.home}/modules/<type>/<name> directory.

Please note that placing jars inside ${xd.home}/lib should now only be needed for classes that need to be referenced from message payloads and shared between modules. For all other purposes, it is better to put jars needed by your custom module inside the following layout:

${xd.home}/
  modules/
    <type>/
      <name>/
        lib/
          your_custom.jar
          another.jar
        config/
          <name>.xml

By doing so, new modules (or changes to existing modules) will be picked up the next time you use them



来源:https://stackoverflow.com/questions/24224164/automatic-deploy-of-new-modules-in-spring-xd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!