Home » Java » Enterprise Java (page 334)

Enterprise Java

Configure LogBack Logging with Spring

LogBack is an API for logging created by the same author of Log4j (a newer implementation, it is like a new version), during this article I’m going to show how to integrate it and use it on a Spring project. On this tutorial I assume you are using a simple Spring ROO project which will prepare all the structure of ...

Read More »

Transaction configuration with JPA and Spring 3.1

spring-interview-questions-answers

1. Overview This tutorial will discuss the right way to configure Spring Transactions, use the @Transactional annotation and common pitfalls. For a more in depth discussion on the core persistence configuration, check out the Spring with JPA tutorial. There are two distinct ways to configure Transactions – annotations and AOP – each with their own advantages – we’re going to ...

Read More »

Simplifying the Data Access Layer with Spring and Java Generics

spring-interview-questions-answers

1. Overview This article will focus on simplifying the DAO layer by using a single, generified Data Access Object for all entities in the system, which will result in elegant data access, with no unnecessary clutter or verbosity. 2. The Hibernate and JPA DAOs Most production codebases have some kind of DAO layer. Usually the implementation ranges from multiple classes ...

Read More »

The Persistence Layer with Spring Data JPA

spring-interview-questions-answers

1. Overview This article will focus on the configuration and implementation of the persistence layer with Spring 3.1, JPA and Spring Data. For a step by step introduction about setting up the Spring context using Java based configuration and the basic Maven pom for the project, see this article. The Persistence with Spring series:       Part 1 – ...

Read More »

The Persistence Layer with Spring 3.1 and JPA

1. Overview This is tutorial shows how to set up Spring with JPA, using Hibernate as a persistence provider. For a step by step introduction about setting up the Spring context using Java based configuration and the basic Maven pom for the project, see this article. 2. The JPA Spring Configuration with Java To use JPA in a Spring project, ...

Read More »

Scaling up to WebLogic 12c Server from GlassFish 3.x

One of the main goals of Oracle’s strategy for GlassFish server was to “integrate with Fusion Middleware and Products” (source: Community Roadmap May, 2010). Back in this year you heard a lot of fears and rumors about the two servers becoming one. Seeing both products moving forward in terms of features and releases it gets clearer what that strategy could ...

Read More »

My Testing and Code Analysis Toolbox

Last week we kicked of a “Testing Skill Group” at LINEAS, a group for exchanging knowledge about testing. One question that came up over and over again in various flavors was: What tools are there for testing and analyzing your code? So here is my personal answer for this, in the approximately order I tend to introduce them into projects: ...

Read More »

Quickstart WebLogic 12c with NetBeans 7.1 RC 2

WebLogic server 12c is out since a few days. It is for “naked” Java dev – the fancy Fusion Middleware stuff will move on to 12c down the line. So, this is basically my release to run. Today I am giving you a quick start with latest NetBeans 7.1 (RC 2) and WebLogic to run the Pet Catalog example with ...

Read More »