What is the use of Servlet Engine and Jetty.

Avatar

Avatar

veerareddyc2547

Avatar

veerareddyc2547

veerareddyc2547

04-01-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Runal_Trivedi

MVP

Avatar

Runal_Trivedi

MVP

Runal_Trivedi
MVP

05-01-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

Answers (2)

Answers (2)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

05-01-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! 

Avatar

Avatar

Feike_Visser1

Employee

Avatar

Feike_Visser1

Employee

Feike_Visser1
Employee

05-01-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.