1

Let's say a new CMS Component type needs to be defined. In order to do that, the standard steps are:

  1. Define the new type into ${extensionName}-items.xml
  2. Stop the server (If it is up and running)
  3. Perform a build so that model and Jalo classes are being generated(for the new type) and compiled -> this takes approx 4 min
  4. Start the server back again -> this takes approx 8 minutes
  5. Perform "Update Running System" so that the DB will know about the newly defined type.

The above described steps take a lot of time.

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 ?

dj_frunza
  • 1,553
  • 3
  • 17
  • 28
  • I've heard about some application which builds only the class you want but you have to pay for it, otherwise I don't think you can load them without building. One solution to speed up the development process could be a new CPU .. but again, you have to invest money.. – user1234SI. Feb 24 '20 at 16:11

2 Answers2

3

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

The answer is yes, you can define new item type using backoffice/hmc types in order to use it on the fly. But the system will not generate all the classes.

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 ?

The answer is no, for the new item type development you need the system generated classes in order to deal with the business logic, which only possible with the steps you have mentioned.


If your question is, how can we speed up the development process with SAP Hybris?

HybrisHelp
  • 5,518
  • 2
  • 27
  • 65
  • thank you for your accurate answer and for the very helpful references that you provided. I have just finished developing a custom ant target which can be used along with JRebel in order to achieve this. Please check my answer – dj_frunza Mar 06 '20 at 17:33
1

This can now be achieved(and saves approximately ten minutes used on build and server start) by using a custom ANT target and JRebel.

Please check the following explanation video which depicts how to define and load new types into the Hybris Type System without restarting the server using JRebel.

Please also check this documentation as well.

dj_frunza
  • 1,553
  • 3
  • 17
  • 28