>>yes. if you're using CMT, this is the behaviour the container provides you automatically if you're using the REQUIRED transaction attribute (the default). if some problem results in a system (runtime) exception, the container automatically rollbacks your changes, including putting the message back in the queue.
Thanks, I read MDB spec and cannot understand that the transaction begins from removing a message from queue.
On exception it will be redelivered.
But I have solved this problem - not to try save message in inbox queue ))