Configuring Java clients for HTTPS or for mTLS can be tricky. It’s tempting to add some kind of trust-all-certs solution and call it good. Fortunately there are Java libraries like Jersey that can help us make the right decisions.
Also find me here:
Baeldung Author
Ulisses Lima
By day, I write new code, I improve bad code, and I try to enforce performance standards. Mostly in Java. I also love automating stuff. Mostly in bash. By night, I write technical articles and write tools for personal management. For fun: I'm a Street Fighter player (3rd Strike and V), trying to learn Japanese.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring Data (6)
- NoSQL (6)
- Testing (4)
- Spring Boot (3)
- Java (3)
- HTTP Client-Side (3)
- Spring Web (2)
- REST (2)
- Java IO (2)
- Jackson (2)
- Core Java (2)
- Web Services (1)
- Spring WebFlux (1)
- Security (1)
- Reactive (1)
- Java Numbers (1)
- Java Map (1)
- Java Dates (1)
- Jakarta EE (1)
- JSON (1)
- JPA (1)
- Data (1)
How to Pass a Variable From One Thread Group to Another in JMeter
Filed under Testing
In this quick tutorial, we’ll explore how to share variables between JMeter Thread Groups. This is a common need when one group performs a setup task, like authentication or data preparation, and another group consumes the result. JMeter has some built in variables we can access, but also we can take matters into our own hands and access the file system to persist values.
Using a Different Client Certificate per Connection in Java
Filed under HTTP Client-Side, Security
We can customize Java’s SSLContext to use different client certificates based on the target server. To create the needed KeyManager and TrustManager, we can use libraries like Apache HttpComponents help or we can stick with pure Java.
Implementing Unions in Hibernate
Filed under JPA
We can use the union operation in Hibernate 6 to unify results from two related database entities. There are also a few other ways, depending on our circumstances.
Flexible Pub/Sub Messaging With Spring Boot and Dapr
Filed under Spring Boot
Learn how to integrate Dapr with Spring Boot to create a publish/subscribe system without coupling to specific brokers.
Session/Cookie Management in Apache JMeter
Filed under Testing
Learn how JMeter manages sessions and cookies and set up a test plan that logs in to an application, accesses protected resources, and logs out. Along the way, use HTTP Cookie Manager, CSV Data Set Config, and response assertions to ensure tests simulate real-world user behavior.
How to Distinguish Between Field Absent vs. Null in Jackson
Filed under Jackson
See why it matters how you differentiate between null values and absent values, how this affects patch and partial updates, and how various Jackson configurations can help.
Setting Connection Timeout and Read Timeout for Jersey
Filed under Jakarta EE, Web Services
Learn the best practice way to set connection and read timeouts in a Jersey web service, whether you need it for a given request, for a given test, or across the application.
Automated Testing for OpenAPI Endpoints Using CATS
Filed under Testing
OpenAPI’s schema makes APIs that use it a good candidate for automated fuzzing and other security testing. Learn how CATS makes this simple to add to your project as well as visually appealing.