Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Is it easy to deploy JS use API than JAVA use API ?

Avatar

Level 2

Recently started working on AEM components.

i looked into the difference at https://docs.adobe.com/docs/en/htl/docs/use-api.html

i also tried both java and js use api, when we use java use api, we have to deploy the jar if the java code is in core module?

so this mean JS use API is easy to deploy ? and how to choose between Java or Js API ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

If you are a Java developers - I recommend using WCMUsePojo or Sling Models:

Creating an Adobe Experience Manager 6.3 HTL component that uses the WCMUsePojo API

View solution in original post

2 Replies

Avatar

Level 2

As mentioned in the adobe article.

  • Use java api for faster response, to troubleshoot and automation purpose.
  • Use JS api for flexibility to change the rendering logic or to modified the front end html based on your logic.

Avatar

Correct answer by
Level 10

If you are a Java developers - I recommend using WCMUsePojo or Sling Models:

Creating an Adobe Experience Manager 6.3 HTL component that uses the WCMUsePojo API