🔸 TL;DR
Web Profile = EJB Lite ✅
EJB Lite ≠ MDB ❌
So: No MDBs on Web Profile-only servers.
🔸 QUICK CONTEXT
You’re deploying a Java EE 7 app on an application server that supports Web Profile only (not Full Profile).
Some components are available… others are not included.
🔸 TRY THE QUIZ (DON’T SCROLL TOO FAST 👀)
Question:
Your server supports Java EE 7 Web Profile only.
Which component type can you NOT use in this environment?
▪️ Singleton Session EJB
▪️ Message-Driven Bean (MDB)
▪️ Stateful Session EJB
▪️ Stateless Session EJB
🔸 ✅ ANSWER
▪️ Message-Driven Bean (MDB)
🔸 WHY
Web Profile includes EJB Lite, not the full EJB stack.
✅ EJB Lite supports Session Beans (Stateless / Stateful / Singleton).
❌ MDBs are NOT part of EJB Lite, so they’re not guaranteed to be available on a Web Profile-only server.
🔸 TAKEAWAYS
▪️ “Web Profile” is smaller than “Full Profile” → always check what’s included 📦
▪️ EJB Lite supports session beans, not message-driven beans 🧠
▪️ If you need messaging (JMS + MDB), you likely need a server/container that supports the required full features (or use an alternative approach) 🚀
#JavaEE #JakartaEE #EJB #WebProfile #EnterpriseJava #JAXRS #JavaCertification #OCP #BackendDevelopment #Architecture #SoftwareEngineering
Go further with Java certification:
Java👇
Spring👇
SpringBook👇
JavaBook👇