Friday Mar 15, 2013

AutoCloseable JMS 2 Resources

As the Java EE 7 release date draws closer, blogs and articles covering the new features are beginning to roll in. In a brief blog entry, John Ament, a key independent member of the JMS 2 expert group talks about AutoCloseable JMS 2 Resources. This feature takes advantage of Java SE 7 try-with-resources to significantly simplify the cleanup of JMS resources such as connections, sessions, message consumers and message producers. This is particularly important in non-Java EE environments where you are not using the new JMSContext API via @Inject. The blog entry includes downloadable JMS 2 code samples. John expects to write many more blog entries covering JMS 2, so stay tuned.

For those unaware, JMS 2 is now in the proposed final draft stage. Feel free to download the draft and take a look at it yourself. There is a very handly What is new in JMS 2.0? section towards the beginning of the document.

Monday Jan 14, 2013

Java EE 7 in Public Review!

Java EE 7 has turned the last lap and is racing towards the finish line! The Java EE 7 JSR itself (JSR 342) very recently published it's official Public Review Draft. The review closes on February 11th so act fast, read the draft spec and send your feedback. The draft is available here. After the review is over, the JSR will go to the EC ballot.

And Java EE 7 is not the only one. As this JSR update from the JCP indicates, the review periods for JMS 2, Java EE Concurrency, WebSocket, JPA 2.1 and JSON-P are still open but will be coming to an end rapidly in the next few weeks.

Thursday Jan 03, 2013

JMS 2 Public Review Draft Published

JMS 2 is arguably one of the most important parts of Java EE 7. The JMS 2 EG officially published it's Public Review Draft today. Characteristic to the great work JMS 2 spec lead Nigel Deakin always seems to pull off, he created a pretty detailed page for the Public Review Draft on the Java.net project for JMS 2.

Nigel invites you to read the draft/Javadocs, download the reference implementation (standalone or with GlassFish), take the JMS 2 example code for a spin and send either him or the EG your feedback. The page also neatly summarizes the actual changes in JMS 2. The formal review period began on January 3rd and ends on February 4th, so act now!

Sunday Apr 15, 2012

Configuring JMS and Message Queues in GlassFish - Sample Chapter

PacktPub released Java EE 6 with GlassFish 3 Application Server a few months after the first version in GlassFish 3 train was released.

This book is a practical guide to install and configure the GlassFish 3 Application Server and develop and deploy Java EE 6 applications on this server. Recently they released a sample chapter on how to configure JMS and message queues in GlassFish. The chapter provide complete snapshots from the web-based admin console and working sample code.

Java EE 6 with GlassFish 3 Application Server Book

The Table of Contents shows that all major Java EE 6 APIs and the details of the GlassFish 3 server are covered followed by examples of its use. This book is a practical guide with a very user-friendly approach.

Read about other books on Java EE and GlassFish here.

Thursday Mar 01, 2012

JMS 2.0 Early Draft is here

The JMS 2.0 Early Draft is now posted for formal review (the review period ends on 29 March 2012).

Spec lead Nigel Deakin has put together a wiki page summarizing the content of the early draft.

ALT_DESCR

For more information about JMS 2.0 (JSR 343), the first JMS update in a looong time, check out the JSR project on java.net.

Friday Dec 23, 2011

Some JMS and OpenMQ for the holidays

JMS and OpenMQ seems to be a recurring topic on the GlassFish forums and mailing-list so we've now made the content of a fairly recent bootcamp available for everyone to play with to become familiar with the technology.

ALT_DESCR

The bootcamp covers basics on OpenMQ and how it relates to GlassFish, sending and receiving JMS messages, using MDB's (message-driven beans), setting up an MQ broker using a GlassFish instance or a GlassFish Cluster.

Just what you needed for the holidays!

Monday May 23, 2011

Evolving the JMS specification, an opportunity and a challenge

A few days ago, Masoud Kalali, now a JSR 343 (JMS 2.0) expert group member on Nigel's suggestion, posted a brief overview of JSR 343 and what he believes are important use-cases to address.

ALT_DESCR

The JMS specification hasn't evolved in a while but it has also served very well its numerous users for all that time. So this post is an interesting read on why we even need JMS 2.0, in addition to the Ease-of-Development love (annotations, CoC, ...) that it probably deserves.

Masoud promises to cover more JMS in future posts so make sure to keep an eye on his blog.

Tuesday Mar 29, 2011

JMS 2.0 - Time to get involved!

Nigel Deakin has been in touch with an update on the progress of Java Message Service (JMS) 2.0, which as JSR 343 is one of several new JSRs that will form part of Java EE 7. Nigel's first task as spec lead is to set up the expert group, so he would like to invite experienced and active practitioners in JMS, who can allocate enough time to contribute to this specification, to apply to join the expert group. Since JMS is a mature technology he's particularly keen to make sure that all the principal JMS 1.1 implementations are represented.

Nigel

Nigel also tells me that he's keen that JMS 2.0 be developed as transparently as possible. There'll be a public email list that interested observers can use to contribute and discuss ideas. The expert group discussions will also be made public as much as possible. There'll also be a JIRA issue tracker which anyone can use to submit proposals. To find out how to get involved, visit the new JMS 2.0 website: jms-spec.java.net.

Wednesday Mar 09, 2011

GlassFish 3.1 SOTD #9 - GlassFish and WebLogic JMS interoperability

In this ninth post of the SOTD (Screencast Of The Day) series following the release of GlassFish 3.1, here is Nigel's GlassFish and WebLogic JMS interoperability.

This 13-minute demo Nigel walk you through the steps to configure GlassFish applications to use WebLogic JMS using the GenericJMSRA resource adapter.

It offers a quick 2-minute introduction and dives straight into the demo with setup and configuration done respectively using the WebLogic Server and GlassFish Server Admin Consoles, a standalone JMS client code to generate some messages for the WebLogic JMS instance and an MDB application deployed on GlassFish. Check out the GenericJMSRA project on java.net and the entire sample code from its Download section.

This screencast is hosted on the GlassFish YouTube Channel.

Tuesday Mar 01, 2011

More Java EE 7 content: Servlet, EL, JMS and JSF updates

Following-up on to yesterday's post on JSR 342 (Java EE 7), there are actually four other JSRs that have been filed :
JSR 340: Java Servlet 3.1 Specification
JSR 341: Expression Language 3.0
JSR 343: JavaTM Message Service 2.0
JSR 344: JavaServerTM Faces 2.2

JCP - Java Community Process

Servlet 3.1 should offer easier to build asynchronous applications (extending the work done for 3.0), support and utilize Java EE concurrency APIs, support WebSockets, offer multi-tenant isolation support and more. The co-spec leads are Shing Wai Chan and Rajiv Mordani.

Expression Language (EL) 3.0, which used to be defined as part of the JSP expert group, now has a dedicated JSR due to its relationship with other parts of the platform such as CDI and JSF. The goal there is to consider support for projection and collection, date types (with appropriate comparison operators) and maybe equality, string concatenation, and sizeof operators. Kin-man Chung is the specification lead.

JMS 2.0 should bring to this API some long awaited EoD (Ease of Development) love, clarification of the relationship between the JMS and other Java EE specifications and a new mandatory API for the integration of any JMS provider in Java EE application servers. Nigel Deakin is the spec lead for this one.

JavaServer Faces (JSF) 2.2 will continue to focus on ease of development, better portlet integration but also consider new features (HTML 5 and others), and of course work on fixes. The plan is to finish before the end of this calendar year (2011). Check out Ed Burns' recent post on this.

All JSRs are now up for voting and slatted for inclusion in Java EE 7, thus hopefully joining JPA 2.1 and JAX-RS 2.0 in the list of "work in progress" JSRs. Speaking of JAX-RS, Marek, the new co-spec lead has a quick update.

Thursday Feb 10, 2011

Two OpenMQ screencasts

OpenMQ is both the JMS reference implementation and a key component of GlassFish. Specifically, OpenMQ 4.5 is the version integrated in GlassFish 3.1 and just like GlassFish goes way beyond what the specification requires, especially with regards to clustering, OpenMQ offers high availability clusters and useful management tools.

We've just posted two MQ screencasts which were produced a little while ago but content still relevant :
GlassFish Message Queue - High Availability Clusters
GlassFish MQ - UMS (Universal Message Service) demo (earlier post on UMS)

OpenMQ

Expect more screencasts with the release of GlassFish 3.1 as well as complete documentation for how to setup complete GlassFish + MQ clusters.