Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Java Web Internals

You're reading from   Java Web Internals Unlock the secrets of Java web servers, frameworks, and application architecture

Arrow left icon
Product type Paperback
Published in Apr 2026
Publisher Packt
ISBN-13 9781835881484
Length 214 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Francisco Isidro Massetto Francisco Isidro Massetto
Author Profile Icon Francisco Isidro Massetto
Francisco Isidro Massetto
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Chapter 1: Networks, Protocols, and Packets 2. Chapter 2: Workings of a Web Server – A Case Study FREE CHAPTER 3. Chapter 3: Implementing a Simple Web Server 4. Chapter 4: Web Servers vs Application Servers 5. Chapter 5: Deep Dive into Simple Web Container Implementation 6. Chapter 6: Simple Web Container Improvements and Expansions 7. Chapter 7: Why Create a Web Framework 8. Chapter 8: Web Frameworks – The Necessary Abstraction for Professional Development 9. Chapter 9: Detailing the SimpleWebFramework Implementation 10. Chapter 10: The Emergence of Dependency Injection and Its Application in SimpleWebFramework 11. Chapter 11: Creating the First Application with SimpleWebFramework 12. Chapter 12: Unlock Your Exclusive Benefits 13. Other Books You May Enjoy 14. Index

The main class: MyWebTestApplication.java

The entry point of the application is the MyWebTestApplication.java file.

package com.myapp;

public class MyWebTestApplication {
    public static void main(String[] args) {
        SimpleWebFramework.run(MyWebTestApplication.class);
    }
}

This simplicity is intentional and reflects one of the fundamental principles of the SimpleWebFramework: doing the essential without syntactic overhead. Unlike frameworks such as Spring Boot and Quarkus, which use annotations like @SpringBootApplication or @QuarkusMain to mark the application's entry point, the SimpleWebFramework adopts a more direct approach.

It is not necessary to explicitly indicate, through an annotation, which class initializes the system, as the existence of the main method (in this case still using the syntactic pattern prior to Java 25) invokes SimpleWebFramework.run, passing the definition of the application class itself as a parameter. This is because, through this definition...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Java Web Internals
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime
Modal Close icon
Modal Close icon