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

Java

  • submit to reddit
Steve Chaloner05/10/12
2125 views
0 replies

Play 2 – Modules, Plugins, What's the Difference?

There seems to be some confusion regarding Play 2 modules and plugins. I imagine this is because the two are often synonymous.

Mitch Pronschinske05/09/12
2247 views
0 replies

Behold! A Solr Client for Scala

Scala users, check this out! If you've been trying to have a better interface for using Apache Solr in your Scala projects, there's a pretty new simple Solr client for Scala being developed on GitHub by Naoki Takezoe.

James Sugrue05/09/12
2403 views
13 replies

Thursday Code Puzzler: Some String Manipulation

Another Thursday, another puzzle. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you think is suitable. This week's one is a bit more practical than previous puzzles.

Dustin Marx05/09/12
2252 views
2 replies

Improving On assertEquals with JUnit and Hamcrest

Unit testing in Java has been particularly affected by the static import and in this blog post I provide one quick example of using static imports to make more fluent unit tests that use JUnit and Hamcrest.

Andy Gibson05/09/12
2552 views
0 replies

Auditing Entities With JPA Events

This article shows how you can leverage JPA Lifecycle Events to automate the filling in of audit information. The first example uses a base entity class with lifecycle events that looks for a time stamp interface to determine whether the entity is audited.

Jos Dirksen05/09/12
1356 views
0 replies

Using SPDY and HTTP Transparently Using Netty

Most people have already heard about SPDY, the protocol, from google, proposed as a replacement for the aging HTTP protocol. Webservers are browsers are slowly implementing this protocol and support is growing.

Stephen Chin05/09/12
1051 views
0 replies

JavaFX and HTML5 at JavaOne India

The session that Kevin and I gave was an updated version of our HTML5 and JavaFX talk. Since we last gave this at Devoxx, we were able to add some exciting info about Bootstrap, which is a new JavaScript framework developed by Twitter that has surpassed both jQuery and node.js in activity

Nicolas Frankel05/08/12
2158 views
0 replies

Another Way to Decouple Your Server Components

One of Vaadin strongest points is the way you can reuse components from project to project inside JARs. This can only be achieved if these components are nicely decoupled from one another.

Spyros Doulgeridis05/08/12
1027 views
0 replies

Dealing with Stuck Threads on WebLogic

WebLogic Server diagnoses a thread as stuck if it is continually working (not idle) for a set period of time. You can tune a server's thread detection behavior by changing the length of time before a thread is diagnosed as stuck (Stuck Thread Max Time), and by changing the frequency with which the server checks for stuck threads.

Steve Francia05/08/12
2661 views
0 replies

MongoDB, Hadoop, and Humongous Data

Check out this presentation that shows you how to use Hadoop's MapReduce and Streaming for analytics on large datasets

Steve Chaloner05/07/12
1426 views
0 replies

jQuery AJAX With Play 2

I’ve just prepared a course on jQuery to give to my colleagues, and one of the sections covers jQuery’s AJAX features. To demonstrate these, I wrote a quick web app using Play 2.

Luigi Viggiano05/07/12
882 views
0 replies

How to Query HTTP:BL for Spamming IP Addresses

f you don’t know Project Honey Pot, go and have a look. They offer a service for querying IP addresses and check if they are listed in those involving in spamming or threatening activities. Let's see how to do this in Java.

Mitch Pronschinske05/07/12
5288 views
10 replies

BREAKING: Jury Finds Infringements in Oracle v. Google Copyright Case

The verdict for phase one of the Oracle v. Google trial has finally been read and what sources out of Twitter are saying indicate that some infringement was found on Google's end.

Jos Dirksen05/07/12
2776 views
0 replies

Protect a REST service using HMAC (Play 2.0)

In this article I'll show you how you can implement this algorithm for a Play 2.0 based REST service. If you use a different technology the steps will be pretty much the same way though.

Blaise Doughan05/06/12
1728 views
0 replies

Extending JAXB - Representing Metadata as JSON

Since MOXy has a JAXB model for its mapping document we were able to eat our own dog food, and now MOXy offers a JSON mapping document.