title: ActiveMQ/JMS - do not retry if message failed to be sent
body: <p>I am using JMS with ActiveMQ.  I have the ActiveMQ broker running on one server and it creates a queue and a message consumer that it uses to receive messages from other servers.  If another server tries to send a message to the queue and it fails for some reason (like if the network between the servers goes down), then I do not want that server to retry sending the message.  Just send it once and if it fails don't retry.  Is this possible with ActiveMQ/JMS?  The javax.jms.Session class has 3 acknowledgment modes (AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE), all of which suggest that the JMS message producer will retry on a failure.</p>