Home » Java » Enterprise Java

Enterprise Java

Upcoming Webinar: How to Build the Ideal Java Production Monitoring Stack

java-interview-questions-answers

How can you incorporate Observability into your system and build the ideal Java production monitoring stack? Monitoring your system to catch slowdowns and errors is important, but being able to gain meaningful insights to actually solve these errors is what makes good developers great. Implementing a culture of Observability means proactively addressing errors in production rather than reacting to user ...

Read More »

High Availability (HA), Session Replicated, Multi-VM Payara Cluster

java-interview-questions-answers

Abstract While researching how to create a high availability (HA), session replicated, multi-machined Payara/GlassFish cluster I discovered I couldn’t find everything I needed in a single reference. I assumed this would be a common need and easy to find. Unfortunately my assumption was wrong. So the purpose of this post is to give a complete end-to-end example of a high ...

Read More »

Get Started with Spring Boot, SAML, and Okta

spring-interview-questions-answers

Build faster with Okta’s authentication and user management API. Register today for the free forever Developer Edition! Today I’d like to show you how build a Spring Boot application that leverages Okta’s Platform API for authentication via SAML. SAML (Security Assertion Markup Language) is an XML-based standard for securely exchanging authentication and authorization information between entities—specifically between identity providers, service ...

Read More »

Jersey Web Service Hello World Example in Java

java-interview-questions-answers

After Restlet, Jersey is another popular open source framework to create RESTful web services in Java. Jersey conforms JAX-RS specification and actually it is the reference implementation of JAX-RS (JSR 311)(http://jsr311.java.net/nonav/releases/1.1/index.html) specification. In the last article, we have seen the Restlet HelloWorld Example and today we’ll see the Jersey HelloWorld Example. Typically, when a developer thinks of creating a RESTful web service using Java, ...

Read More »

Spring Boot Web Slice test – Sample

java-interview-questions-answers

Spring Boot introduced test slicing a while back and it has taken me some time to get my head around it and explore some of its nuances. Background The main reason to use this feature is to reduce the boilerplate. Consider a controller that looks like this, just for variety written using Kotlin. @RestController @RequestMapping("/users") class UserController( private val userRepository: UserRepository, private val ...

Read More »

Short Retry vs Long Retry in Apache Camel

Camel Design Patterns book describes 20 patterns and numerous tips and best practices for designing Apache Camel based integration solutions. Each pattern is based on a real world use case and provides Camel specific implementation details and best practises. To get a feel of the book, below is an extract from the Retry Pattern from the book describing how to ...

Read More »

Hibernate Architecture Overview

The diagram below provides a high-level view of the Hibernate architecture: Minimal architecture The “minimal” architecture has the application manage its own JDBC connections and provide those connections to Hibernate; additionally the application manages transactions for itself. This approach uses a minimal subset of Hibernate APIs. Comprehensive architecture Hibernate Basic APIs Here are quick discussions about some of the API ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns