<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb" -->

---
title: Jakarta Faces, Java Web Framework, Stateless Edition:...
description: AliFaces is a proof-of-concept marketplace application built with Jakarta Faces 4.1, Mojarra 4.1.14, PrimeFaces 16 and OmniFaces 5.5, running on Tomcat 11 and...
canonical: https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Jakarta Faces, Java Web Framework, Stateless Edition: Marketplace AliFaces | daily.dev
og:description: AliFaces is a proof-of-concept marketplace application built with Jakarta Faces 4.1, Mojarra 4.1.14, PrimeFaces 16 and OmniFaces 5.5, running on Tomcat 11 and...
og:url: https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb
og:image: https://api.daily.dev/og/posts/p9HpMulSB.png
og:image:alt: Jakarta Faces, Java Web Framework, Stateless Edition: Marketplace AliFaces
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Jakarta Faces, Java Web Framework, Stateless Edition: Marketplace AliFaces

**[Foojay.io](https://daily.dev/sources/foojayio)** · 6 min read · 7 upvotes · 1 comments

## Summary

AliFaces is a proof-of-concept marketplace application built with Jakarta Faces 4.1, Mojarra 4.1.14, PrimeFaces 16 and OmniFaces 5.5, running on Tomcat 11 and Open Liberty, that removes HttpSession, saved ViewState and sticky sessions from the web tier. It uses transient views, request/application-scoped beans, a NoSessionGuard to prevent accidental session creation, JWT/Bearer token identity, and a pluggable SharedStore (currently in-memory, swappable for Redis or a database) to externalize cart and browsing history. A two-node Open Liberty test shows guest identity and preferences surviving across nodes while cart state remains node-local under InMemorySharedStore, illustrating exactly where shared state is still needed. The catalog includes 194 products with CDN-delivered images, keeping the unikernel image around 10 MB.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://foojay.io/today/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces>

## Questions this post answers

### How can I make a Jakarta Faces (JSF) application stateless without using HttpSession?

Use transient views by setting the ViewState to stateless via a transient master view, avoid @ViewScoped and @SessionScoped beans in favor of @RequestScoped and @ApplicationScoped, and externalize domain state like carts to a shared store such as Redis or a database instead of HttpSession. A NoSessionGuard can enforce that no code calls getSession(), turning statelessness into an architectural rule rather than a convention. This approach was demonstrated on Jakarta Faces 4.1 with Mojarra 4.1.14, PrimeFaces 16, and OmniFaces 5.5.

_daily.dev surfaces architecture patterns like this for teams weighing stateless designs against sticky sessions._

### Can Jakarta Faces run without sticky sessions across multiple nodes?

Yes, a two-node test using two independent Open Liberty instances running the same WAR showed a single shopper journey alternating between nodes with no JSESSIONID created and both nodes returning stateless ViewState. Guest identity, theme, and language survived node changes because identity traveled in a signed JWT rather than session state; only an in-memory cart demo revealed separate per-node memory, which a shared store like Redis would resolve.

_developers evaluating horizontal scaling for JSF apps can track real-world stateless proofs of concept on daily.dev._

## Similar posts on daily.dev

- [Eclipse Starter for Jakarta EE](https://daily.dev/posts/eclipse-starter-for-jakarta-ee-dtuwqzwyt) · Awesome Java Newsletter · 1 upvotes · 0 comments
- [Hashtag Jakarta EE \#342](https://daily.dev/posts/hashtag-jakarta-ee-342-yujdjtttt) · Jakarta EE · 2 upvotes · 0 comments
- [Jakarta Data Makes Persistence a Breeze](https://daily.dev/posts/jakarta-data-makes-persistence-a-breeze-rsbio0c0q) · Foojay.io · 0 upvotes · 0 comments
- [Jakarta EE Series](https://daily.dev/posts/jakarta-ee-series-x82lnabq8) · Baeldung · 0 upvotes · 0 comments
- [Java News Roundup: WildFly, Micronaut, Spring AI, Apache Fory, GlassFish Plugin, Open Liberty](https://daily.dev/posts/java-news-roundup-wildfly-micronaut-spring-ai-apache-fory-glassfish-plugin-open-liberty-bjm9krmxy) · InfoQ · 5 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Jakarta Faces, Java Web Framework, Stateless Edition: Marketplace AliFaces","url":"https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb"},"datePublished":"2026-08-29T19:30:31.307Z","dateModified":"2026-09-13T18:45:56.461Z","description":"AliFaces is a proof-of-concept marketplace application built with Jakarta Faces 4.1, Mojarra 4.1.14, PrimeFaces 16 and OmniFaces 5.5, running on Tomcat 11 and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2c77644fccfb39f47fdaa959fc0a854e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2c77644fccfb39f47fdaa959fc0a854e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Foojay.io","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Foojay.io","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1820f6a6ae944760aa322b67ed85f848","url":"https://daily.dev/sources/foojayio"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,java","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Foojay.io","item":"https://daily.dev/sources/foojayio"},{"@type":"ListItem","position":3,"name":"Jakarta Faces, Java Web Framework, Stateless Edition: Marketplace AliFaces"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/jakarta-faces-java-web-framework-stateless-edition-marketplace-alifaces-p9hpmulsb#faq","mainEntity":[{"@type":"Question","name":"How can I make a Jakarta Faces (JSF) application stateless without using HttpSession?","acceptedAnswer":{"@type":"Answer","text":"Use transient views by setting the ViewState to stateless via a transient master view, avoid @ViewScoped and @SessionScoped beans in favor of @RequestScoped and @ApplicationScoped, and externalize domain state like carts to a shared store such as Redis or a database instead of HttpSession. A NoSessionGuard can enforce that no code calls getSession(), turning statelessness into an architectural rule rather than a convention. This approach was demonstrated on Jakarta Faces 4.1 with Mojarra 4.1.14, PrimeFaces 16, and OmniFaces 5.5. daily.dev surfaces architecture patterns like this for teams weighing stateless designs against sticky sessions."}},{"@type":"Question","name":"Can Jakarta Faces run without sticky sessions across multiple nodes?","acceptedAnswer":{"@type":"Answer","text":"Yes, a two-node test using two independent Open Liberty instances running the same WAR showed a single shopper journey alternating between nodes with no JSESSIONID created and both nodes returning stateless ViewState. Guest identity, theme, and language survived node changes because identity traveled in a signed JWT rather than session state; only an in-memory cart demo revealed separate per-node memory, which a shared store like Redis would resolve. developers evaluating horizontal scaling for JSF apps can track real-world stateless proofs of concept on daily.dev."}}]}
```

