Is it easy to deploy JS use API than JAVA use API ? | Community
Skip to main content
Level 2
Sep 5, 2017 10:30 AM UTC
Solved

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

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Sep 5, 2017 4:33 PM UTC

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

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Sep 5, 2017 4:33 PM UTC

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

Translate
Level 2
Sep 5, 2017 2:53 PM UTC

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.
Translate