Java EE project from remote Git repository

How to import a Java EE Marven project from a remote Git Hub repository into Eclipse.

You will learn:

  1. how to download and install eGit for eclipse,
  2. how to checkout a Git Hub repository from a remote site and
  3. how to import a Marven project.

This article assumes that you have the Java EE Kepler version of Eclipse, a Git Hub account that contains a repository that you want to checkout and that the project has a POM file (i.e. is a Marven project). Continue reading more –>

Clean Code: Variables

We know how the code we write works, we understand it, we don’t need comments, its obvious, of course, we wrote it. This is what we all think and its true – well today its true, but tomorrow, next week, next year – its not likely to be so true. And do others understand the way you code? Is the code obvious to the new team member that must maintain your code. Will you be spending hours explaining something that should be obvious or fixing errors made by others because they didn’t understand your ‘obvious’ code? This is why ensuring that your code is clean is so important. In this article I talk about how to chose variable names that are intuitive, relevant and above all clean. Continue reading about clean code.

HTML5 and AJAX interface

In the final part of this four step tutorial I am going to show how to use HTML5 and AJAX from jQuery to build a pop-up box that triggers an AJAX call to a servlet that marshals the XML returned from a web service then returns it back as the response to the AJAX call and displays the result in the pop-up. Continue reading.

JSP, tag libs and servlet

In the previous article we saw how to marshal the XML returned by the web service to a Stock object. Now we are going to create a JSP template to create the structure of the popup using tag libs to manipulate the data from the Stock object and a servlet to handle the request and response of the client. Continue reading.

Consuming Web Services: Marshalling with JAXB

Continuing from the previous article in which I showed how to use an Eclipse wizard to create a web service client given just the URI of the WSDL, I am going to use JAXB, the Java Architecture for XML binding. Marshalling is mapping XML elements to object properties so that each element of an XML String of data can be ‘injected’ into the properties of an object. Unmarshalling is the opposite. The flattening of an object to an XML String. Continue reading the article about marshalling with JAXB.

Consuming Web Services: The Web Service Client

This article walks you through the creation of a web services client from a URL pointer. We are going to use a location service WSDL to create the client in eclipse Juno. I will use a free web service that returns a stock quote for a given stock code. Continue reading this article about using web services from server to client.