Serie : Choosing Names – 1. part : DTOs

This article is the beginning of a small series about choosing names for classes (like DTOs, entities, enums …). Every part of this serie is focused on a different type of class, the actual article, for example, deals with possible pattern, pre- and postfixing of names for DTOs. Background for this series is a discussion […]

 

26
Kudos
Don't
move!

Read more

Hint: SLF4J Konfiguration within an EAR

Hi, here is an short introduction of how to use slf4j’s logback.xml configuration file within an EAR. Everybody who uses slf4j (or other Logging Frameworks) knows the following Problem When you deliver the configuration file of the logging framework within an WAR works everything as expected and without any problems. But if you try this […]

 

17
Kudos
Don't
move!

Read more

Tutorial: How to use JAX-RS and CDI together

Hi, because it’s relative hard to figure out, how to do it, I would like to show you how to combine JAX-RS and CDI. Preparation You need a Glassfish v3.x where we will run this application Gradle at least in version 1.0 Let’s start with a minimal application “The Greeter”. If you call “<your_host>/GreetMeWithJaxRSAndCDI/rest/greet/<NAME>” it […]

 

20
Kudos
Don't
move!

Read more

Gradle: Using expand and jQuery

During the last days I started to enable a build-time setup for one of my Spring projects. One thing I set at build time was the spring.profiles.default  context parameter. For replacing wildcards during build time I added the expand()  closure to the war-task of my Gradle build script. The problem This works fine til I wanted to […]

 

1
Kudos
Don't
move!

Read more

Gradle – Multi-Modul-Project – Change module path

In Multi-Modul-Projects you have several options to define the directory structure. One variant, we also use for our projects, is the following: 

The simplest and fastest solution with Gradle is to define the following includes in the settings settings.gradle  file:

This solution has, at least, to drawbacks. One is that you need to define inter-module dependencies […]

 

0
Kudos
Don't
move!

Read more