Is your client application running on a local Glassfish instance and trying to connect to the remote glass fish JMS server resources?
If yes, then I found 2 ways to do this. For both options, the same connection between the factory and the target (queue) JMS Resources in remote and local instances in a glass form is configured.
1) Set jms parameter factory connection property "addressList"
In the admin console for Glassfish clients, click Resources->JMS Resources->Connection Factories->jms/YourConnectionFactory->Additional Properties
Add an additional property with the name addressList and value XX.XX.XX.XX: YYYY where value is the IP address of the remote machine and the port number on which the JMS service is running.
or
2) Install the Glassfish client Java Message Service application to connect to the remote glass shawl
In the admin console for Glassfish clients, click Configurations->server-config->Java Message Service
- Set JMS service type: REMOTE (click "Save")
- Set JMS
Hosts->default_JMS_host IP address and port to be the IP address and port of the JMS service of the remote window.
I tested both options with Glassfish 4. Hope this helps.
source share