是否可以在不重新启动服务器的情况下定义新类型并将其加载到 Hybris 类型系统中?

Is it possible to define and load new types into the Hybris type system without restarting the server?

假设需要定义一个新的 CMS 组件类型。为此,标准步骤是:

  1. 将新类型定义为 ${extensionName}-items.xml
  2. 停止服务器(如果它已启动并且 运行)
  3. 执行构建以便生成模型和 Jalo 类(针对新类型)并编译 -> 这大约需要 4 分钟
  4. 重新启动服务器 -> 这大约需要 8 分钟
  5. 执行"Update Running System"以便数据库知道新定义的类型。

上述步骤需要很多时间

是否可以在不重启服务器的情况下定义新类型并将其加载到 Hybris 类型系统中以加快开发过程

Is it possible to define and load new types into the Hybris type system without restarting the server?

答案是肯定的,您可以使用 backoffice/hmc 类型定义新的项目类型以便即时使用它。但是系统不会生成所有的类.

Is it possible to define new types and load them into the Hybris type system without restarting the server in order to speed up the development process ?

答案是否定的,对于新的项目类型开发,您需要系统生成类来处理业务逻辑,这只有通过您提到的步骤才能实现。


如果您的问题是,我们如何使用 SAP Hybris 加快开发过程?

这现在可以通过使用自定义 ANT 目标和 JRebel 来实现(并在构建和服务器启动时节省大约 10 分钟)。

请检查以下内容explanation video,其中描述了如何在不重新启动服务器的情况下定义新类型并将其加载到 Hybris 类型系统中使用 JRebel

请同时检查此 documentation