JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server Message Queue 4.5 Administration Guide
search filter icon
search icon

Document Information


Part I Introduction to Message Queue Administration

1.  Administrative Tasks and Tools

2.  Quick-Start Tutorial

Part II Administrative Tasks

3.  Starting Brokers and Clients

4.  Configuring a Broker

5.  Managing a Broker

6.  Configuring and Managing Connection Services

Configuring Connection Services

Port Mapper

Thread Pool Management

Managing Connection Services

Pausing and Resuming a Connection Service

Updating Connection Service Properties

Viewing Connection Service Information

Managing Connections

7.  Managing Message Delivery

8.  Configuring Persistence Services

9.  Configuring and Managing Security Services

10.  Configuring and Managing Broker Clusters

11.  Managing Administered Objects

12.  Configuring and Managing Bridge Services

13.  Monitoring Broker Operations

14.  Analyzing and Tuning a Message Service

15.  Troubleshooting

Part III Reference

16.  Command Line Reference

17.  Broker Properties Reference

18.  Physical Destination Property Reference

19.  Administered Object Attribute Reference

20.  JMS Resource Adapter Property Reference

21.  Metrics Information Reference

22.  JES Monitoring Framework Reference

Part IV Appendixes

A.  Distribution-Specific Locations of Message Queue Data

B.  Stability of Message Queue Interfaces

C.  HTTP/HTTPS Support

D.  JMX Support

E.  Frequently Used Command Utility Commands


Managing Connections

The Command utility’s list cxn and query cxn subcommands display information about individual connections. The subcommand imqcmd list cxn lists all connections for a specified connection service:

imqcmd list cxn [-svn serviceName] [-b hostName:portNumber]

If no service name is specified, all connections are listed. For example, the following command lists all connections on the default broker (host localhost at port 7676):

imqcmd list cxn -u admin

Example 6-4 shows an example of the resulting output.

Example 6-4 Broker Connections Listing

Listing all the connections on the broker specified by:
Host                   Primary Port
localhost              7676

Connection ID         User    Service   Producers  Consumers    Host
1964412264455443200   guest   jms       0          1  
1964412264493829311   admin   admin     1          1  

Successfully listed connections.

To display detailed information about a single connection, obtain the connection identifier from imqcmd list cxn and pass it to the imqcmd query cxn subcommand:

imqcmd query cxn -n connectionID [-b hostName:portNumber]

For example, the command

imqcmd query cxn -n 421085509902214374 -u admin

produces output like that shown in Example 6-5.

Example 6-5 Connection Information Listing

Connection ID      421085509902214374
User               guest
Service            jms
Producers          0
Consumers          1
Host               111.22.333.444
Port               60953
Client ID          
Client Platform    

The imqcmd destroy cxn subcommand destroys a connection:

imqcmd destroy cxn -n connectionID [-b hostName:portNumber]

For example, the command

imqcmd destroy cxn -n 421085509902214374 -u admin

destroys the connection shown in Example 6-5.