Difference between deployment through REST and Deployment through Process Application in Camunda

Hi Experts

As per the recommendation given in below link, we can use deploy via REST only when it is independent of java classes (highlighted part) so if my process has Java delegates and Java listeners then I can’t/shouldn’t deploy the process via REST ? Or even if I deploy such process via REST, it won’t work ?

Please advise.

https://camunda.com/blog/2020/04/how-to-choose-the-right-camunda-architecture/

Deploy via REST: you can simply use Camunda’s REST API to send the process model to the engine. This is often done for the External Task Pattern or in cases where the model is not dependent on any local artifacts (e.g. Java Classes)

Deploy via Process Application: In this case you would locally build and compile an application containing your process(es) and any other required artifacts and then deploy that to the same application service that contains the engine. The engine will automatically deploy what it finds in the application

Thanks