<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vimukthi Jayasanka</title>
    <description>The latest articles on DEV Community by Vimukthi Jayasanka (@vimukthi_jayasanka_816593).</description>
    <link>https://dev.to/vimukthi_jayasanka_816593</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2948318%2Fef16970b-5b2b-4d28-a6fc-558e5624aed7.png</url>
      <title>DEV Community: Vimukthi Jayasanka</title>
      <link>https://dev.to/vimukthi_jayasanka_816593</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vimukthi_jayasanka_816593"/>
    <language>en</language>
    <item>
      <title>Jakarta Servlets: Behind the Scene of Deployment and container Lifecycle</title>
      <dc:creator>Vimukthi Jayasanka</dc:creator>
      <pubDate>Sat, 22 Mar 2025 16:45:29 +0000</pubDate>
      <link>https://dev.to/vimukthi_jayasanka_816593/jakarta-servlets-behind-the-scene-of-deployment-and-container-lifecycle-5a4k</link>
      <guid>https://dev.to/vimukthi_jayasanka_816593/jakarta-servlets-behind-the-scene-of-deployment-and-container-lifecycle-5a4k</guid>
      <description>&lt;p&gt;Jakarta Servlets (formerly Java Servlets) are at the core of Java-based dynamic web applications, processing HTTP requests and responses. The Servlet Container (like Apache Tomcat or Jetty) manages the servlet lifecycle, enabling smooth communication between web servers and browsers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Jakarta Servlets Matter&lt;/strong&gt;&lt;br&gt;
Despite Spring's dominance, servlets remain foundational to Java web development. Every request processed by Spring ultimately flows through a servlet. Understanding servlets helps developers better manage Java web applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: WAR File Deployment&lt;/strong&gt;&lt;br&gt;
The Servlet Container deploys WAR files, extracting Java class files, scanning for annotations (@WebServlet, @WebFilter), and processing web.xml configurations. This prepares the application for initialization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Creating Servlet Context&lt;/strong&gt;&lt;br&gt;
The Servlet Context is created, acting as a shared space where servlets, filters, and listeners interact. It stores global settings (e.g., database configurations) and is accessible throughout the application lifecycle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: ServletContainerInitializer&lt;/strong&gt;&lt;br&gt;
The container looks for ServletContainerInitializer in META-INF/services, bootstrapping custom logic like dynamically registering servlets or filters using the onStartup() method.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Initializing Listeners, Filters, and Servlets&lt;/strong&gt;&lt;br&gt;
The container initializes listeners, filters, and servlets. Filters intercept requests, and servlets are instantiated based on loadOnStartup configurations. Once initialized, the app is ready to handle requests.&lt;/p&gt;

&lt;p&gt;Stay tuned for the next article on Jakarta Servlet lifecycle during request processing!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read the full article on Medium&lt;/strong&gt; {&lt;a href="https://medium.com/p/516dfa7496ff" rel="noopener noreferrer"&gt;https://medium.com/p/516dfa7496ff&lt;/a&gt;} &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>java</category>
      <category>programming</category>
      <category>backenddevelopment</category>
    </item>
    <item>
      <title>Check Out My Portfolio</title>
      <dc:creator>Vimukthi Jayasanka</dc:creator>
      <pubDate>Sun, 16 Mar 2025 22:49:24 +0000</pubDate>
      <link>https://dev.to/vimukthi_jayasanka_816593/check-out-my-portfolio-1k83</link>
      <guid>https://dev.to/vimukthi_jayasanka_816593/check-out-my-portfolio-1k83</guid>
      <description>&lt;p&gt;In this post, I’ll share how I created my personal portfolio website using Vite for fast development, Firebase Hosting for seamless deployment, and integrated SEO best practices to ensure it’s discoverable and optimized for search engines.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>html</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
