Broker JMS transaction issue !

Hi All,
I have a scenario like this :
I am using webmethods JMS broker queue. I am putting many messages into it and want to read/process all the messages together.

  1. In case of successFull processing ,no message should be left in the queue.
  2. If there is some error while processing , all the messages should get rolled back to the queue.

I have tried NO_TRANSACTION/LOCAL_TRANSACTION but nothing seems to be working. I am getting different different kind of errors like :“queue is in use”, “resource is use in parent transaction”, “unable to get session handler” etc.

Please help me out to get a solution for this.

Thanks a lot.