As and when the queue receives a message it needs to acknowledge the sender with a custom message like "SUCCESS".
Can it be done at configuration level?
No. JMS does not have client-client acknowledgment. You can ack to the broker (with CLIENT_ACKNOWLEDGMENT, Sonic's proprietary SINGLE_MESSAGE_ACKNOWLEDGEMENT, or using a commit() on a transacted session), but the original sender is unaware of this. It is one of the design goals of JMS to disentangle the sender and receiver through a broker.
Typically, this is done by using a JMSReplyTo and having the sender send an explicit message back to this destination.