Scrivio Interview library

Jakarta EE platform

21 questions in 9 subtopics.

Javax to jakarta namespace

ConceptFoundations5 min read
Why did packages change from javax.* to jakarta.*, and which Spring versions require the jakarta namespace?
ScenarioIntermediate6 min read
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

ConceptFoundations5 min read
Compare CDI and Spring dependency injection: annotations, default scope and how proxies are used.
InternalsIntermediate6 min read
What is CDI Lite, and why do frameworks such as Quarkus process CDI at build time?

JAX-RS

CodingFoundations6 min read
Write a Jakarta REST (JAX-RS) resource that returns an order by id as JSON, and name two implementations.
DesignIntermediate5 min read
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

ConceptFoundations5 min read
What is the difference between JPA (Jakarta Persistence) and Hibernate?
LeadershipAdvanced6 min read
Should your teams restrict themselves to the JPA specification for portability, or use Hibernate-specific features freely?

JTA

ConceptIntermediate6 min read
What does JTA provide, and when would a Spring application need a JTA transaction manager instead of a DataSourceTransactionManager or JpaTransactionManager?
DesignAdvanced6 min read
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

ConceptFoundations6 min read
What are stateless session beans, stateful session beans and message-driven beans in EJB?
ScenarioAdvanced7 min read
You inherit an application on an old WebLogic or WebSphere server with EJBs and JNDI lookups. Outline a migration plan to Spring Boot.
LeadershipPrincipal6 min read
Why did Spring largely displace EJB for enterprise Java, and what does Jakarta EE still offer today?
LeadershipPrincipal6 min read
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

ConceptIntermediate5 min read
What is Eclipse MicroProfile, and which of its specifications correspond to Spring Boot features?
LeadershipPrincipal6 min read
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

CodingFoundations6 min read
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.
DebuggingIntermediate6 min read
After moving an application from Java EE 8 to Jakarta EE 10, email sending fails with NoSuchProviderException for smtp, although jakarta.mail-api is on the classpath. What is wrong?
LeadershipPrincipal6 min read
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

ConceptFoundations5 min read
What is JNDI, how does a Jakarta EE application look up a DataSource with it, and how does Spring Boot usually avoid it?
ScenarioIntermediate6 min read
Explain how the Log4Shell vulnerability abused JNDI lookups, and what that teaches about JNDI in modern Java applications.