Ian P. Christian's Personal Blog Random witterings from pookey

14Jan/100

Getting started with Glassfish using Maven

In this post I detail simple instructions for installing Glassfish v3 onto Ubuntu (although it will work just as well with Redhat, debian, and anything else). I also show how to create and deploy a simple WAR using Maven.

Continue reading
Filed under: geek, java Continue reading
16Mar/096

Playing with ActiveMQ using Maven

In this post I demonstrate how to get started with ActiveMQ. This is very much a simple beginners guide, and shows you just enough to get a message traveling between 2 separate applications.

I've separated the example up into 3 sections. The 'producer' section will create test messages on a queue, the 'consumer' will consume them, and the final section, 'mq', will host the ActiveMQ instance. It would be possible to do this in a single application using an embedded broker, however I think it's useful to demonstrate them separately, as potentially the components could be on separate machines.

Continue reading
Filed under: geek, java Continue reading
26Sep/0820

Hibernate Tutorial part 4 – annotations and maven

In the last part of my hibernate tutorials I showed how to get a simple application inserting data into a database. This part doesn't expand on that in terms of features, in fact, this tutorial actually does less! However, the last tutorial required you to download a whole load of JAR files, and manage all dependencies. I did make this easy for you, by providing a single download and telling you exactly what you needed - but this time, I'm going to make it even easier! The purpose of this is to get you started with Hibernate annotations, and Maven. All you need is a text editor, a working Java 5 or higher install, and Maven.

Continue reading
Filed under: geek, java Continue reading
5Sep/0824

Getting started with Maven and Spring

This guide is a quick introduction to getting started with Maven and Spring, and shows the making of a "Hello World" application

The only requirements for this project is a text editor, a Java install, and Maven.

Continue reading
Filed under: geek, java Continue reading
1Aug/089

Hibernate with MySQL – a beginners guide – part 3

In part 1 and part 2 I showed how to get up and running with hibernate. This part continues from where we left off.

Continue reading
Filed under: geek, java Continue reading
1Aug/0820

Hibernate with MySQL – a beginners guide – part 2

This post is a follow on from my previous post Hibernate with MySQL - a beginners guide - part 1. Having followed part 1, you should have a simple java application that prints 'ok', an ant build script, and downloaded hibernate and the MySQL connector. Now it's time to do something useful!

Continue reading
Filed under: geek, java Continue reading
1Aug/0810

Hibernate with MySQL – a beginners guide

This article is an introduction from getting hibernate working from scratch. The only dependency is that you have a text editor, a working Java install, and ant. In this part of my guide, we will simply setup our environment, download some needed jar files and ensure that we can build an run a simple Java application. In the follow up part to this article, I will cover connecting to a database and doing a few interesting things with Hibernate.

Continue reading
Filed under: geek, java Continue reading