Java EE 7: JMS with ActiveMQ

Another interesting topic in a JEE 7 application is messaging. So in this article I’ll take a peek at ActiveMQ and Java Message (JMS) to see how to tie them together to a working application.

In this article I’ll use the Java EE 7 project set up in the last article.

Continue reading

Joda-Time with Java EE and JPA 2

With Java 8 there is a new date and time structure which was inspired from Joda-Time. It is far more better than the old and clumsy Date and Calendar constructs. Nevertheless, if you want to store the time in a database, you have to tinker a bit because currently there is no supported out-of-the-box solution.

In this article I present solutions how to persist Joda-Time constructs into your database with JPA 2 (JPA 2.0 and JPA 2.1).

Continue reading

JPA 2.1 and Table Inheritance

Newly I came across a little problem with JPA 2.0 and table inheritance: what if we have a base entity and extend it to some other subclasses and use inheritance strategies? Does it work out of the box or do we need some configuration?

Well, in this article I’ll take a look at this problem with the Hibernate JPA 2.1 implementation.

Continue reading

Setting up a Java EE project

I am preparing an article for some JEE problems where I stumbled into the question: how to set up a Java EE 7 project from zero? There were not much usable resources on the internet when I searched. So I think this is a great opportunity to share my setup with you.

Continue reading