The new version of GlassFish is the industry’s first application server to support the new Java™ Platform Enterprise Edition 6 (Java EE 6).
GlassFish v3 includes version 4.4 of Open Message Queue, a Java Message Service (JMS) message broker, as the default JMS provider. For Delphi developers, the interesting new feature in this release of OpenMQ is that it can exchange JMS messages with non-Java clients using the Stomp message protocol.
For Delphi developers, this means that asynchronous message exchange between web applications and EJB (Enterprise JavaBeans) and integration of applications running on GlassFish v3 becomes possible.
- with the ‘publish and subscribe’ communication model, Delphi™ applications receive the same messages from the broker which have been sent to Java client applications, implementing an enterprise-level observer pattern with JMS as shown in the Enterprise Integration Pattern catalog
- the ‘peer to peer‘ communication model helps to implement load balancing for high-volume online system using distributed Delphi worker applications
This tutorial shows the steps to build and run web application on the Java platform with the NetBeans 6.8 IDE and GlassFish v3 which sends message to the OpenMQ Java Message Service (JMS) message broker included in GlassFish. A Delphi message consumer application created with the Habari OpenMQ Client library then can be used to receive the messages from the broker asynchronously.
Update: the second part of the tutorial will guide you through the creation of a simple EJB application for GlassFish v3 which uses a Message Driven Bean to receive messages from a message queue on the embedded OpenMQ broker. The Delphi ProducerTool application sends messages to the message queue.
About GlassFish v3
GlassFish v3 is the industry’s first application server to support the new Java Platform Enterprise Edition 6 (Java EE 6).
About Open Message Queue (OpenMQ)
Open Message Queue is an enterprise quality, production ready, scalable messaging server. It provides a complete Java Message Service (JMS) implementation for message oriented system integration. Read more: https://mq.dev.java.net/about.html