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 “Playing with ActiveMQ using Maven”

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 “Hibernate Tutorial part 4 – annotations and maven”

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 “Hibernate with MySQL – a beginners guide – part 2”

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 “Hibernate with MySQL – a beginners guide”