Overview This guide walks through creating two OSGi modules in Liferay 7.4 and sharing a Java package between them using the standard API + Implementation pattern. This is the most common and correct approach for exposing reusable services in a Liferay-based architecture. In OSGi, a bundle (module) does not expose its internal packages by default — everything is private unless explicitly exported. To share code between modules, the standard practice is to split functionality into: · An API module — contains interfaces/DTOs and exports the package · A Service (Implementation) module — implements the interface, imports the package, and registers the implementation as an OSGi component/service The consuming module then simply imports the API package and looks up the service using @Reference injection. Step 1: Create the API Module Using Liferay Workspace + Blade CLI, generate a new API module: blade create -t api -p com.sgc.greeting greeting-api This generates a Gradle module unde...
Top Spring Boot Interview Questions (2026) – For Freshers & Experienced Developers If you are preparing for a Spring Boot interview , this comprehensive list of frequently asked Spring Boot interview questions will help you revise core concepts and advanced topics. Whether you are a fresher or an experienced developer, interviewers often ask fundamental questions to evaluate your conceptual clarity. Below is a categorized list of important Spring Boot interview questions. Basic Spring Boot Interview Questions What is Spring Boot? How is Spring Boot different from the Spring Framework? Why was Spring Boot introduced? What are the advantages of Spring Boot? What are the limitations or drawbacks of Spring Boot? What is the architecture of Spring Boot? How does Spring Boot simplify application development? What is auto-configuration in Spring Boot? How does Spring Boot work internally? What is the difference between Spring and Spring Boot? Core Concepts ...