Create a JBoss AS 7 appliance with VirtualBox

In this tutorial we will demonstrate how to create in a matter of minutes a JBoss AS 7.1.1 appliance designed around a Linux distribution. The software we will use for this purpose is Oracle’s Virtual Box. VirtualBox is a cross-platform virtualization application. What does that mean? For one thing, it installs on your existing Intel … Read more

Maven and JPA tutorial

This tutorial shows how to create a JPA project using a Maven archetype and how to modify it in order to use Hibernate 4 JPA Provider and MySQL.   Maven and JPA tutorial By using the mvn archetype:generate command you are able to generate a quickstart project from an archetype. Lots of archetypes are available … Read more

WildFly / JBoss EAP classloading explained

JBoss EAP / WildFly classloading explained As mandated by Java EE specifications, an application server should ideally give its deployed applications the freedom to use whatever utility library and whatever version of it, regardless of the presence of concurrent applications that want to use the same library. This is also known as namespace isolation. However, … Read more

Using Table per subclass strategy

Hibernate Table per subclass strategy When using this strategy, the superclass has a table and each subclass has a table that contains only un-inherited properties: the subclass tables have a primary key that is a foreign key of the superclass. Example: package com.sample public class Vehicle {     // Constructors and Getter/Setter methods,     long … Read more

Configuring a Resource Adapter for JBoss AS7: OpenMQ

This tutorial shows how to configure a Resource Adapter on JBoss AS 7. The purpose of it, is connecting your MDB on another JMS provider (OpenMQ). What is a Resource Adapter ? to keep it simple, imagine a resource adapter something analogous to a JDBC driver. Both provide a standard API through which an application … Read more

Hibernate Data Filters

Filtering data is one of the most common Task of an application. This is usually achieved by adding WHERE clauses to your queries. In case the filters are defined dynamically by the user it becomes a more complex issue. A very powerful option for creating dynamic conditions to your applications are Criteria API, however it’s … Read more

How to enable cascade delete/update?

One of the key features of relational database is referential integrity which is maintained by the system by taking certain actions when referential constraints are violated. So for example what happens when: 1) A row with a referenced primary key is deleted from the referenced table 2) A referenced primary key is updated in the … Read more

Hibernate dynamic-insert and dynamic-update

Hibernate dynamic-insert and dynamic-update When the dynamic-insert  property is set to  true , Hibernate does  not include null values for properties (for properties that aren’t set by the application) during an  INSERT operation. With the  dynamic-update property set to true, Hibernate does not include unmodified  properties in the  UPDATE operation. This can be specified either … Read more

JBoss vs Oracle middleware: my line

I’ve recently come across a blog post on Oracle site where JBoss EAP 6 platform and Oracle 12c are compared. Although not working for RedHat/JBoss I do am engaged with JBoss stuff but I’ll try to be as more independent as possible. The biggest claim of this post is a  “Cost of ownership analysis” which … Read more

How to monitor JBoss with Jolokia

Jolokia is a cool monitoring solution for accessing JMX MBeans remotely. It is different to JSR-160 connectors in so far as it is an agent based approach which uses JSON over HTTP for its communication in a REST-stylish way. As any monitoring solution, an agent is required to interact with the application. Multiple agents are … Read more