-
Enterprise Java
Handle custom exception types in JAX-RS
JAX-RS supports handling custom exceptions — thrown in either EJBs or CID beans — to custom HTTP responses. Assuming we have an “exceptional” EJB:…
Read More » -
Enterprise Java
Continuous Delivery friendly Maven versions
A Continuous Delivery pipeline requires predictable software and dependency versions. Snapshot versions, which are common in Maven software projects, contradict…
Read More » -
Enterprise Java
Using JAX-RS exceptions for status codes
One way to send specific HTTP (error) status codes from a JAX-RS resource is to use the javax.ws.rs.core.Response class with…
Read More » -
Enterprise Java
JPA persistence.xml SQL script definitions
You can define and link to SQL scripts in a JPA persistence context definition that will be executed at runtime.…
Read More » -
Software Development
Access Git repositories with Java using SSH keys
For some use-cases you might access a git repository from a Java application. JGit offers a helpful integration with builder…
Read More » -
Enterprise Java
WildFly Kubernetes exec probes
Liveness and readiness probes tell Kubernetes whether a pod is running and ready to do some work. An enterprise application…
Read More » -
Enterprise Java
Jersey client dependencies for JAX-RS 2.1
Jersey is the reference implementation of JAX-RS 2.1. The following Jersey dependencies are required in order to run a JAX-RS…
Read More » -
DevOps
Dockerized Java EE 8 applications with GlassFish 5.0
GlassFish 5.0 represents the reference implementation of Java EE 8. We can dockerize Java EE 8 applications by using a…
Read More »