I had the similar problem a few days ago. My problem was the queue destination name. Apparently, ConnectionFactory and destination names are different when connecting locally and remotely. This is bit tricky but I think you will find your answers in the manual. I found mine trail and error and had to RTM to understand the convention used.