Set Up RMI and Hessian Remoting in Spring Boot 2

Java RMI and the Hessian binary web-service format are considered legacy remoting protocols, but they still appear in enterprise codebases that predate REST or in environments where binary efficiency matters more than interoperability. Spring Boot 2 makes both trivially easy to configure through dedicated exporter beans — no XML, no servlet configuration, just a few @Bean declarations. This guide shows you how to expose and consume a service over both protocols with the minimal possible code.

Continue reading Set Up RMI and Hessian Remoting in Spring Boot 2

Jersey JAX-RS JSONP Example: Cross-Origin Requests with Callback Support

JSONP (JSON with Padding) is a legacy cross-origin communication technique that wraps a JSON payload inside a JavaScript function call, allowing a browser to load data from a different domain by exploiting the fact that <script> tags are not subject to the same-origin policy. While CORS is the modern standard, JSONP support is still requested when integrating with older browsers or APIs that do not expose CORS headers. Jersey provides first-class JSONP support through its built-in padding mechanism. This guide shows you exactly how to enable and use it.

Continue reading Jersey JAX-RS JSONP Example: Cross-Origin Requests with Callback Support

8086 Assembly Program to Find Prime Numbers Using the Sieve of Eratosthenes

The Sieve of Eratosthenes is one of the oldest and most elegant algorithms for finding all prime numbers up to a given limit. Implementing it in 8086 assembly is an outstanding exercise: it demands careful use of nested loops, indirect memory addressing through BX, and byte-level array manipulation — concepts that appear throughout real-mode system programming. This post walks through a fully working implementation that marks composite numbers in a byte array and then prints every surviving prime.

Continue reading 8086 Assembly Program to Find Prime Numbers Using the Sieve of Eratosthenes

8086 Assembly Program to Implement a Simple Calculator

Building a calculator in 8086 assembly language is an excellent way to consolidate knowledge of arithmetic instructions, conditional jumps, procedure calls, and string I/O in a single program. In this post you will study a fully working calculator that accepts two 16-bit operands and an operator (+, -, *, /), performs the chosen operation, and displays the result — all in real-mode 8086 assembly using MASM/TASM-compatible syntax.

Continue reading 8086 Assembly Program to Implement a Simple Calculator

Solving NotYetImplementedException with Native Queries in Spring Boot JPA/Hibernate

If you have ever tried to project only a subset of columns from a native SQL query in Spring Boot with Hibernate, you may have encountered this cryptic error: org.hibernate.query.sqm.internal.SqmUtil$NotYetImplementedException or Pure native scalar queries are not yet supported. It is one of the more confusing Hibernate error messages because the fix is not obvious from the stack trace. This post explains exactly what causes it, shows you three clean solutions, and recommends the right approach for each scenario.

Continue reading Solving NotYetImplementedException with Native Queries in Spring Boot JPA/Hibernate

Angular Services and Dependency Injection: A Complete Guide

Angular’s dependency injection (DI) system is one of the framework’s defining features. Rather than creating service instances manually, you declare what a component or another service needs, and Angular’s injector provides the right instance automatically. This makes your code modular, testable, and free from tight coupling. In this guide you will learn how to create services, register them with the DI system, understand injection scope, and write tests that swap real services for mocks.

Continue reading Angular Services and Dependency Injection: A Complete Guide

Packaging Java Apps: Fat JAR with Shade Plugin vs Spring Boot JAR vs jpackage

Distributing a Java application means choosing how to package it. Should you produce a thin JAR and let users manage the classpath? An über JAR (fat JAR) with all dependencies bundled in? A native installer via jpackage? Each approach has a place, and understanding all three lets you pick the right one for every deployment scenario — from a developer tool shipped on Maven Central to a desktop app distributed to non-technical users.

Continue reading Packaging Java Apps: Fat JAR with Shade Plugin vs Spring Boot JAR vs jpackage