posted 15 years ago
Depends wht you want to achieve, and which type of transaction management you want to use - bean or container?
For exanple, if you want the message receipt be part of the same transaction as operations in the stateless bean, you use CMT on the message bean, and make the transaction context propagate to the bean. This way when the stateless bean rolls back the transaction, the receipt of the message is also rolled back, and the message will get redelivered. This is only one possible option, though, and you may want different behaviour. Describe it, then.