You can use the asadmin jms-ping command to check whether a Sun GlassFish Message Queue instance is running. For details, see the Sun GlassFish Communications Server 1.5 Reference Manual.