Suppose the message that is sent remains in the queue for 1 minute. Does that mean that the whole transaction won't commit and will wait for the message to be processed
There is nothing written in specs that why RequiresNew can't be
Also would like to add that there should be some way that the sending of message can take part in a transaction. I was just thinking that if in practical cases suppose we have to create a customer in the ejb and tell the finance department about the new customer by sending an message then this all should be one transaction.
This would mean that the answer to this is 6: "Neither the message is sent nor any database changes get committed. ". Is that correct?