The GlassFish 3.1 Administration Guide does not describe how to use the Generic Resource Adapter for JMS (GenericJMSRA) to connect to GlassFish Message Queue, even though this is supported.
The only documentation for GenericJMSRA is a section
"Using the Generic Resource Adapter for JMS to Integrate Supported External JMS Providers"
This describes GenericJMSRA generically and then gives detailed configuration information for WebLogic JMS and IBM WebSphere MQ. However there is no equivalent section for GlassFish Message Queue.
Such a section should mention that when using GlassFish Message Queue, both jndi and javabean integration modes are supported, and what settings are needed in the two cases.