Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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