You are currently browsing the monthly archive for May 2007.

A Jr. programmer of our team asked me about how to implement object of equals, hashcode and compareTo. I gave him an example and how it relates. Also I showed him the practices. But actually I take the advantage to use Jakarta Commons in many projects instead implementing the code.

1. Using the Jakarta Commons, Part 1

2. Using the Jakarta Commons, Part2

3. The Hidden Gems of Jakarta Commons

4. Simplifying Java with Jakarta Commons Lang

5. Jakarta Commons Cookbook

6. Making Java Objects Comparable

Since Hibernate is popular, then now EJB 3.0 also has the similar mechanism. Here we usually have the strategies to generate it. I use EJB 3.0 as example and the concept you can apply universal.

1. Automatic Id generation

Need a Primary Key? Let Me Show You the Ways

2. Id generation using a table

TopLink JPA: Using a Table for Id generation

3. Id generation using a database sequence

Using Primary Keys with Java Persistence

4. Id generation using database identify

Automatic Primary Key Generation using Oracle, SQLServer, or SQLServer2000

5. Data modeling concept

Data Modeling 101

The Design of a Robust Persistence Layer For Relational Databases

How to avoid primary key collision on multiple sites?

6. Object-Relational patterns

Object-Relational Metadata Mapping Patterns

Object-Relational Structural Patterns

Object-Relational Behavioral Patterns

Java API for XML Web Services (JAX-WS) 2.0, JSR 224, is an important part of the Java EE 5 platform. I spent about two weeks to implement the feature and it’s really easy to learn it (compare to JAX-RPC). I would like to share it to everyone. Therefore I can do it, and I think you, too.

1. How to create a simple JAX-WS server and client

Web Services (JAX-WS) in Java EE 5

The JavaEE 5 Tutorial – Building Web Services with JAX-WS

2. What else do you need to know?

GlassFish: JAX-WS Reference Implementation Project and documents

Sun Developer Network: Web Services Overview

3. If you want to use EJB 3.0 and JAX-WS

Developing web services using EJB 3.0

EJB 3.0 and WebServices

Implement, deploy and call an EJB 3.0 webservice using Glassfish and JAX-WS

EJB 3.0 Based Web Services

4. New feature of JDK 6 with web services

Web services in JDK 6

Introducing JAX-WS 2.0 With the Java SE 6 Platform, part 1

Introducing JAX-WS 2.0 With the Java SE 6 Platform, part 2

Mustang: The fast track to Web services

JAX-WS tools: wsgen and wsimport

5. References

Web services hints and tips: JAX-RPC vs JAX-WS part 1

Web services hints and tips: JAX-RPC vs JAX-WS part 2

Sun tech tips: RESTful Web Services

In 30 Seconds: A Quick Guide to RESTful Web Services 

Java.net JAX-WS articles

Yesterday Murali Kosaraju posted an article; XA transactions using Spring. He wrote the practical case to demonstrate the JBoss + Spring to handle the XA transactions.

Also I found Mike Spille has posted a three-part series covering XA and the joys of 2 Phase Commit.

XA Exposed Part I

XA Exposed Part II

XA Exposed Part III: The Implementor’s Notebook

And books about Transaction Process:

Principles of Transaction Processing
Java Transaction Processing: Design and Implementation