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
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
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
Implement, deploy and call an EJB 3.0 webservice using Glassfish and JAX-WS
4. New feature of JDK 6 with web services
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
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 III: The Implementor’s Notebook
And books about Transaction Process:
Principles of Transaction Processing
Java Transaction Processing: Design and Implementation
I see lots of annontations on Java application. Sometimes I wonder what is used for. So I decide to collect the resources as most as I can. (note: I just got news said Groovy 1.1 will support Annotations.)
1. Annotations at Java SE
An Introduction to Java Annotations
JDBC 4.0 Enhancements in Java SE 6
Reading annotations at runtime
Java annotations make declarative programming easy
2. Annotations at Java EE 5.0
List of all Java EE 5 Annotations
Validate Java EE Annotations with Annotation Processors
New features added to Servlet 2.5
Simplify enterprise Java development with EJB 3.0, Part 1
Simplify enterprise Java development with EJB 3.0, Part 2
Web Services Made Easy with JAX-WS 2.0
Using Annotations on the Java EE 5.0 Platform
3. Open source framework
An Introduction to Hibernate 3 Annotations
A Java configuration option for Spring
4. Code example
testannotations_3.pdf





