I'm a little confused by your request. Are you asking how to limit the number of retries? If so, set the RedeliveryLimit attribute for your Queue's MBean. The message will proceed to the DLQ after the RedeliveryLimit is met.
Thanks. I was looking for a way to not re-sending, I'll set it to zero then ...