Start the GlassFish server and use a browser to connect to the Admin Console.
The URL for the Admin Console is http://HostName:PortNumber. The default port number is 4848.
In the left navigation bar, expand Resources and Connectors, and then select Admin Object Resources.
Click New.
For this exercise, enter the following values:
JNDI Name = jms/Queue2
Resource Type = javax.jms.Queue
Resource Adapter = sun-jms-adapter
Click Next.
Enter Queue2 in the Name property.
This is the physical destination name of the resource.
Click Finish.