So, we have created a JMS queue to act as a JMS destination for our application.
NetBeans adds the GlassFish resources we created to a file called sun-resources.xml .
This file is created under the Server Resources node in the Projects view.
When we deploy our project to GlassFish, it reads this file and creates the resources
defined in it. We can see the contents of this file by double-clicking on it.
We can confirm that the queue was created successfully by inspecting the GlassFish
web console. We can open the GlassFish web console by clicking on the Services tab,
expanding the Servers node, then right-clicking on the GlassFish Server 4 node, and
finally selecting View Domain Admin Console .