How to do it...

  1. We will begin by configuring our messaging service in GlassFish 5. Once the server is up and running, go to this URL:

http://localhost:8080

  1. Now click on the go to the Administration Console link or if you prefer, go straight to the URL at:

http://localhost:4848/

Then follow this path in the left menu:

Resources | JMS Resources | Connection Factories

  1. Click on the New button. When the page is opened, fill the General Settings section fields like this:
  • JNDI Name: jms/JmsFactory
  • Resource Type: javax.jms.ConnectionFactory

We will not touch the Pool Settings section here, so just click on the OK button to register your new factory.

  1. Now follow this path in the left menu:

Resources | JMS Resources | Destination Resources ...

Get Java EE 8 Cookbook 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.