Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

Java

  • submit to reddit
Billy Sjöberg04/22/12
508 views
0 replies

Templating Web Services With Velocity Using Camel

When creating webservices a lot of people have objections against using JAXB for binding XML to objects. This may be because of performance reasons, allergy to generated code or simply a philosophical belief that you should not mix document centric services with an object oriented model.

Ricardo Zuasti04/22/12
921 views
2 replies

Sometimes It's Easier to Just Write Your SQL

Object-relational mapping (in the JPA compliant sense) is so ubiquitous nowadays in the Java development scene, that we rarely question ourselves if we really need it, and if not using it may be a better option.

Lukas Eder04/22/12
1264 views
2 replies

Exciting Ideas in Java 8: Streams

Brian Goetz’s recent post on the State of the Lambda reveils exciting new ideas that are prone to be included in Java 8. One of them is the concept of “Streams” as opposed to “Collections”. Using the new Java 8 extension methods, the Iterable interface can be extended compatibly with a lot of “lazy” and “eager” methods for streaming behaviour:

Rob Gordon04/21/12
1717 views
2 replies

A Custom Property in Spring

What if you don’t want a property hard coded into a file – a clear text password for instance? Spring provides all the bits and pieces to write your own property replacement. Let me introduce my CustomPropertyConfigurer.

Lukas Eder04/21/12
2248 views
0 replies

jDBI: A Simple Convenience Layer on Top of JDBC

I’m always looking out for similar tools like jOOQ, or at least tools that work in the same domain – the domain of database access abstraction. jDBI looks lovely. It provides simple solutions for what JDBC is lacking in general

Nicolas Frankel04/20/12
2035 views
0 replies

Spring: Profiles or Not Profiles?

I’m a big user of Spring, and I must confess I didn’t follow all the latest additions of version 3.1. One such addition is the notion of profile.

Billy Sjöberg04/20/12
2231 views
4 replies

Gotcha When Using Camel-Servlet

In my current project I'm using Apache Camel for the integration, and I bumped into a significant oops moment while using the camel-servlet component. I found that while I had multiple applications (WAR's) deployed I often started the wrong routes, even though I was hitting the correct endpoint url

Mark Needham04/20/12
2626 views
0 replies

Neo4j + Lucene: Querying a Graph Ontology

Mark Needham created a graph of all the people in ThoughtWorks and the connections between them based on working with each other. He wanted to include auto complete functionality when typing in a name so he needed to figure out how to partially query the index of people’s names. That's where Lucene comes in...

Billy Sjöberg04/19/12
2234 views
0 replies

Implementing Your Own "SOA" Registry: the Maven Way

As an integration consultant I've worked with registries ranging from overly complex offerings (IBM Websphere Registry and Repository) to time-consuming simple wikis, but I have to say that his solution is arguably the most elegant yet.

Jens Schauder04/19/12
3977 views
11 replies

TDD: Do We Really Have To Do It?

Many really smart people tell us we have to use TDD if we want to create code that is worth a penny. But the one thing these people do not provide is anything close to a proof. They offers their own experience, which might be distorted for all kinds of things.

James Sugrue04/19/12
3240 views
6 replies

Thursday Code Puzzler: Solve the Towers of Hanoi

Another Thursday, another puzzle: this week it's the Towers of Hanoi. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you think is suitable

Pierre-hugues C...04/18/12
2048 views
0 replies

Java Heap Analysis in JRockit

This article will provide you an overview and tutorial on how you can perform an initial analysis and problem isolation of a JRockit Java Heap problem using the jrcmd tool.

Jos Dirksen04/18/12
2012 views
0 replies

Connect to RabbitMQ Using Scala, Play and Akka

In this article we'll look at how you can connect from Scala to RabbitMQ so you can support the AMQP protocol from your applications.

Nicolas Frankel04/18/12
1831 views
3 replies

Develop Vaadin Apps With Scala

Henri Kerola, a Vaadin team member, has commited to create a Scala add-on that aims to ease Scala Vaadin integration: the Scaladin add-on (formerly known as scala-wrappers) is more than meeting my expectations

James Sugrue04/18/12
4972 views
0 replies

Oracle v Google Trial Day 2: Ellison Testifies

The Oracle vs Google case has finally hit the courtroom, and on the second day, Larry Ellison is Oracle's first witness. Ellison's main argument - APIs are difficult to make, and as such, they should be intellectual property.