Return to site

⚡☕ JAKARTA EE CAN have LIVE RELOAD BUT tooling matters

· jakartaee

Myth:

“Jakarta EE does not support live, instant reload.”➡️WRONG

This belief mostly comes from older workflows:

▪️ Build the application

▪️ Package a WAR

▪️ Copy it to a server

▪️ Restart everything

▪️ Wait… and refresh 😴

But that workflow is not an inherent Jakarta EE limitation.

🔸 TL;DR

Jakarta EE does not prescribe one universal live-reload mechanism.

However, Jakarta EE applications can absolutely provide a fast, automated development loop when the server and deployment tooling support it.

🔸 TRUTH

Jakarta EE defines enterprise standards. The development feedback loop depends on your application server, build process, deployment workflow and tooling.

Live reload also does not mean that every possible change can magically replace every running class.

A more practical definition is:

- Save a change, automatically rebuild or redeploy what is necessary, and see the result without manually restarting the entire environment.

- FlowLogix demonstrates this approach for Jakarta Faces applications running on Payara or GlassFish. Its container deployment plugin watches source files, builds an exploded WAR, hot-redeploys Java changes, updates resources and refreshes the browser automatically.

🔸 1. ADD THE DEPLOYMENT PLUGIN

<plugin>
 <groupId>com.flowlogix.plugins</groupId>
 <artifactId>container-deploy-plugin</artifactId>
 <version>1.3.1</version>
</plugin>

Add the plugin to your Maven build. Version 1.3.1 is the latest published release at the time of writing.

🔸 2. START DEVELOPMENT MODE

mvn server:dev

This starts the server when needed, deploys the exploded WAR, opens the application and watches src/main for changes.

🔸 3. WATCH CHANGES ONLY

mvn server:watch

Use watch mode when the application is already deployed and you only need automatic change detection and reloads; without opening the browser.

For common changes, the workflow becomes:

▪️ Edit an XHTML, CSS or JavaScript resource

▪️ Save it

▪️ Let the exploded WAR update

▪️ See the browser refresh

Java changes require recompilation and hot redeployment, while deeper configuration or infrastructure changes may still require a restart.

🔸 TAKEAWAYS

▪️ Slow WAR deployments are a workflow problem, not a Jakarta EE law

▪️ Live reload does not mean every change uses HotSwap

▪️ Resources and Java classes may require different reload strategies

▪️ FlowLogix provides dev mode and browser refresh for Payara and GlassFish

The myth saying that Jakarta EE applications can never reload quickly is FALSE. 🤥

#JakartaEE #Java #FlowLogix #JakartaFaces #PrimeFaces #OmniFaces #Payara #GlassFish #Maven #DeveloperExperience #LiveReload #EnterpriseJava

Go further with Java certification:

Java👇

Spring👇

SpringBook👇

JavaBook👇