You can connect to a Queue or Topic remotely and then close the connection. There are several example programs to do this.
If you want more detailed status information, like how many messages are in the queue, use JMX.
Thank you very much for your help. Can you point me to url or a place where I can get those examples you have mentioned?
Again thanks a lot.