Wednesday, August 27, 2008

EJB 3.0 and Spring 2.5

For those of you who are interested in using EJB 3.0 components in Spring, I have written a detailed How-to article at Javalobby. This article shows you how easily you can call EJB 3.0 session beans from within your Spring beans.

Also, some interesting comments from readers and a few from Reza Rehman co-author of the "EJB3 in Action" book.

UML Diagrams from NetBeans

Based on the article I wrote at Javalobby: Reverse-engineer Source Code into UML Diagrams, my DZone colleague Geertjan Wielenga has written another article on how to generate these UML Diagrams from within the NetBeans IDE, called Generate UML Diagrams into Javadoc in NetBeans Projects.

I especially liked the way Geertjan starts off his article by saying:
One incredibly useful article recently on Javalobby is called Reverse-engineer Source Code into UML Diagrams, by Meera Subbarao.

Take a look at your leisure.

Monday, August 25, 2008

Reverse-engineer Source Code into UML Diagrams

I wrote an article at Javalobby and testearly about how to use UMLGraph to generate UML diagrams from existing source code, how to integrate these within your build file, and also use the Ant targets within Hudson CI job, and keep your code base and the UML diagrams in sync. I also show how to include these ant targets in your commit builds or nightly builds of your CI jobs, and also publish these artifacts as part of the post build process.

The article shows how easy and simple it is to include UML diagrams within your Javadoc and also keep them updated with every change in the source code repository. We can do these in less than a few minutes, and in a few simple steps.

Getting started with UmlGraph takes five steps:

  1. Download the source code for UMlGraph.
  2. Download and install Graphviz.
  3. Make changes to your Ant build file.
  4. Run the Ant target.
  5. Add this target to your CI job.
The above 5 steps are covered in detail in the article.

Take a look at the article, and share your thoughts. The response has been amazingly good for this article.

Friday, August 8, 2008

Spring's so Groovy

Just yesterday, I wrote an article at about how easy it was to use Groovy within Spring. I was reading the book "Spring Recipes - A Problem-Solution Approach", and the last chapter is about "Scripting in Spring".

I wrote a simple "HelloWorldService" in Eclipse IDE following the samples provided by this book. Trust me, it was so easy.

In this tutorial written at testearly, you will learn how to use Groovy with Spring, using an external script source file, how to refresh changes when a script source file is changed, and finally see an inline script which was embedded within the Spring configuration file.

Have you used Spring and Groovy? If so, do you mind sharing your thoughts?

P.S: Stay tuned for a detailed review of the book "Spring Recipes - A Problem-Solution Approach" at Javalobby.

Monday, August 4, 2008

New Apress Java Books - Summer 08

Last week, I received an email from the contact I had for Apress publishers, and was given this list of books which would be available in Summer of 2008. I have already read and reviewed the Spring book "Beginning Groovy and Grails". It was a great book indeed. Here are several other books some of which are already available and a few coming soon.

Pro Spring 2.5

The Spring Framework remains the leader in the move from so-called heavyweight architectures, such as Enterprise JavaBeans, toward lightweight frameworks. Pro Spring 2.5 covers the new features of Spring 2.5, but moreover, it is focused on best practices and core standards of contemporary Spring development.

The Definitive Guide to Apache MyFaces and Facelets

The Definitive Guide to Apache MyFaces and Facelets is an ideal reference if you're looking to develop real–world applications with the open source lightweight Apache MyFaces and Dojo (the Ajax API). It focuses on aspects like scalability, design, optimization, and configurability. And it includes lucid code samples that reflect the pattern being described.

Practical API Design: Confessions of a Java™ Framework Architect

Practical API Design: Confessions of a Java Framework Architect will be required reading for all designers and engineers involved with the development, testing, and maintenance of APIs.

The Definitive Guide to Terracotta: Cluster the JVM for Spring, Hibernate and POJO Scalability

Terracotta CTO Ari Zilka and his team give you the ultimate guide on Terracotta Java application infrastructure, as well as user secrets, recipes, and prepackaged frameworks.

Spring Recipes: A Problem-Solution Approach

Spring Recipes: A Problem–Solution Approach focuses on the latest available Spring 2.x fundamentals that you require for building a three–tier Java EE application with web interface and database persistence. The topics of this book are introduced by complete and real–world code examples that you may follow step by step.

Beginning Groovy and Grails: From Novice to Professional

Beginning Groovy and Grails is the first introductory book on the Groovy language and its primary web framework, Grails. It gets you started with Groovy and Grails and culminates in the example and possible application of some real–world projects. You follow along with the development of each project, implementing and running each application while learning new features along the way.


Pro Java EE Spring Patterns: Best Practices and Design Strategies Implementing Java EE Patterns with the Spring Framework

Pro Java EE Spring Patterns focuses on enterprise patterns, best practices, design strategies, and proven solutions using key Java EE technologies including JSP™, servlets, EJB™, and JMS APIs. This Java EE patterns resource, catalog, and guide, with its patterns and numerous strategies, documents and promotes best practices for these technologies, implemented in a very pragmatic way using the Spring Framework and its counters.

Beginning Database Development in Java EE: Using GlassFish TopLink

Beginning Database Development in Java EE: Using GlassFish TopLink focuses on the open source TopLink persistence engine as a likely replacement for Hibernate long term. TopLink resides under the emerging official agile lightweight GlassFish application development framework and deployment platform project based on Java EE.

The Definitive Guide to SOA: Oracle Service Bus, Second Edition

The Definitive Guide to SOA: Oracle Service Bus, Second Edition is the first book to cover a practical approach to SOA using the BEA AquaLogic Service Bus tool. And it’s written from the “source”: BEA Systems AquaLogic product lead Jeff Davies.

Beginning Google Web Toolkit: From Novice to Professional

Learn to build rich, user–friendly web applications using a popular Java–based Ajax web framework, the Google Web Toolkit. The authors will guide you through the complete development of a GWT front end application with a no–nonsense, down–to–earth approach.