What is the use of Servlet Engine and Jetty. | Community
Skip to main content
Level 3
January 5, 2017
Solved

What is the use of Servlet Engine and Jetty.

  • January 5, 2017
  • 3 replies
  • 7268 views

Hi all,

Could any one please explain me about Servlet Engine and Jetty in aem.

1).What Servlet Engine can do in aem?

2).What Jetty can do in aem?

Thanks & Regards

VeeraReddy.Ch

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Runal_Trivedi

veerareddyc25475686 wrote...

Hi all,

Could any one please explain me about Servlet Engine and Jetty in aem.

1).What Servlet Engine can do in aem?

2).What Jetty can do in aem?

Thanks & Regards

VeeraReddy.Ch

 

Any web application to run needs a server for e.g. Tomcat, JBoss etc.. there are many application servers available in market. 

Jetty is the server that comes prepackaged in AEM Jar, so when you run AEM using the JAR file, then the entire AEM is using Jetty to run and execute. Find more on Jetty here - http://www.eclipse.org/jetty/documentation/9.4.x/introduction.html

AEM does offer some parameters that you can configure for Jetty. You can do it from felix console - http://localhost:4502/system/console/configMgr/org.apache.felix.http

Also Jetty is not the only server compatible, but you can run AEM inside any application container, if you opt to do so, then you will need AEM WAR file and deploy AEM as standard web-app in those servers. Adobe does provide step-by-step guide on how you can install AEM in other application servers. Please refer it here - https://docs.adobe.com/docs/en/aem/6-2/deploy/application-server-install.html

- Runal

3 replies

Feike_Visser1
Adobe Employee
Adobe Employee
January 5, 2017

In the end the calls to AEM are received by the servlet-engine. Jetty is the implementation used.

You can write your own servlets in AEM.

smacdonald2008
Level 10
January 5, 2017

AEM is an OSGi platform (a Java platform) - you can write OSGi services and servlets - for information - see: 

https://en.wikipedia.org/wiki/OSGi#Services

When writing Servlets for AEM - you typically write SLing Servlet and use APIs like: 

https://sling.apache.org/documentation/the-sling-engine/servlets.html

Hope this helps! 

Runal_Trivedi
Runal_TrivediAccepted solution
Level 6
January 5, 2017

veerareddyc25475686 wrote...

Hi all,

Could any one please explain me about Servlet Engine and Jetty in aem.

1).What Servlet Engine can do in aem?

2).What Jetty can do in aem?

Thanks & Regards

VeeraReddy.Ch

 

Any web application to run needs a server for e.g. Tomcat, JBoss etc.. there are many application servers available in market. 

Jetty is the server that comes prepackaged in AEM Jar, so when you run AEM using the JAR file, then the entire AEM is using Jetty to run and execute. Find more on Jetty here - http://www.eclipse.org/jetty/documentation/9.4.x/introduction.html

AEM does offer some parameters that you can configure for Jetty. You can do it from felix console - http://localhost:4502/system/console/configMgr/org.apache.felix.http

Also Jetty is not the only server compatible, but you can run AEM inside any application container, if you opt to do so, then you will need AEM WAR file and deploy AEM as standard web-app in those servers. Adobe does provide step-by-step guide on how you can install AEM in other application servers. Please refer it here - https://docs.adobe.com/docs/en/aem/6-2/deploy/application-server-install.html

- Runal