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 ...

Get Java EE 7 Development with NetBeans 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.