Jakarta EE platform
21 questions in 9 subtopics.
Javax to jakarta namespace
Why did packages change from javax.* to jakarta.*, and which Spring versions require the jakarta namespace?You are migrating a Spring Boot 2 service with many javax imports and third-party libraries to Spring Boot 3. How do you plan it?CDI
Compare CDI and Spring dependency injection: annotations, default scope and how proxies are used.What is CDI Lite, and why do frameworks such as Quarkus process CDI at build time?JAX-RS
Write a Jakarta REST (JAX-RS) resource that returns an order by id as JSON, and name two implementations.A team must choose between Jakarta REST and Spring MVC for new services in a Spring Boot organisation. What do you consider?JPA as a specification
What is the difference between JPA (Jakarta Persistence) and Hibernate?Should your teams restrict themselves to the JPA specification for portability, or use Hibernate-specific features freely?JTA
What does JTA provide, and when would a Spring application need a JTA transaction manager instead of aDataSourceTransactionManager or JpaTransactionManager?A legacy system uses XA transactions between Oracle and IBM MQ. You are splitting it into services. How do you replace distributed transactions?EJB and legacy application servers
What are stateless session beans, stateful session beans and message-driven beans in EJB?You inherit an application on an old WebLogic or WebSphere server with EJBs and JNDI lookups. Outline a migration plan to Spring Boot.Why did Spring largely displace EJB for enterprise Java, and what does Jakarta EE still offer today?Your company still runs 40 applications on a commercial application server whose licence renewal is expensive. How would you plan the exit over several years?MicroProfile
What is Eclipse MicroProfile, and which of its specifications correspond to Spring Boot features?Your company is reconsidering its framework bet for the next ten years: Spring Boot, Quarkus or a Jakarta EE runtime. How would you make the decision?Jakarta Mail
Using the Jakarta Mail API directly (not Spring), send an HTML email with a PDF attachment through an SMTP server that requires STARTTLS and authentication.After moving an application from Java EE 8 to Jakarta EE 10, email sending fails withNoSuchProviderException for smtp, although jakarta.mail-api is on the classpath. What is wrong?Your company sends 50 million transactional emails a month from many Java applications using their own SMTP code. Would you keep this, build a central email service, or buy a provider? How do you decide?JNDI
What is JNDI, how does a Jakarta EE application look up aDataSource with it, and how does Spring Boot usually avoid it?Explain how the Log4Shell vulnerability abused JNDI lookups, and what that teaches about JNDI in modern Java applications.No question matches these choices.