Reader small image

You're reading from  Java EE 7 Development with NetBeans 8

Product typeBook
Published inJan 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781783983520
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
David R Heffelfinger
David R Heffelfinger
author image
David R Heffelfinger

David Heffelfinger is the Chief Technology Officer of Ensode Technology, LLC, a software consulting firm based in the greater Washington DC area. He has been architecting, designing, and developing software professionally since 1995, and has been using Java as his primary programming language since 1996. He has worked on many large-scale projects for several clients including the US Department of Homeland Security, Freddie Mac, Fannie Mae, and the US Department of Defense. He also has a Masters degree in Software Engineering from Southern Methodist University. David is Editor-in-Chief of Ensode.net (http://www.ensode.net), a website about Java, Linux, and other technology topics.
Read more about David R Heffelfinger

Right arrow

Creating JMS resources from NetBeans


Before we can send and receive JMS messages, we need to add a JMS destination (queue or topic) in our application server. When using GlassFish as our application server, we can create JMS destinations directly from any Java EE project in NetBeans.

Note

Older versions of Java EE required the creation of a JMS connection factory in addition to JMS destinations. The Java EE 7 specification requires all compliant application servers to supply a default JMS connection factory; therefore, this step is no longer necessary.

JMS destinations are an intermediate location where JMS producers place messages and JMS consumers retrieve them. When using the PTP messaging domain, JMS destinations are message queues, whereas with the pub/sub messaging domain, the destination is a message topic.

In our example, we will use the PTP messaging domain. Therefore, we need to create a message queue; the procedure to create a message topic is almost identical.

First, we need to create...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Java EE 7 Development with NetBeans 8
Published in: Jan 2015Publisher: PacktISBN-13: 9781783983520

Author (1)

author image
David R Heffelfinger

David Heffelfinger is the Chief Technology Officer of Ensode Technology, LLC, a software consulting firm based in the greater Washington DC area. He has been architecting, designing, and developing software professionally since 1995, and has been using Java as his primary programming language since 1996. He has worked on many large-scale projects for several clients including the US Department of Homeland Security, Freddie Mac, Fannie Mae, and the US Department of Defense. He also has a Masters degree in Software Engineering from Southern Methodist University. David is Editor-in-Chief of Ensode.net (http://www.ensode.net), a website about Java, Linux, and other technology topics.
Read more about David R Heffelfinger