Topic
1 reply Latest Post - ‏2007-10-16T15:42:22Z by Raghuram
JohnO
JohnO
1 Post
ACCEPTED ANSWER

Pinned topic MQe: what happens when JMS Session.commit fails?

‏2007-10-11T16:36:45Z |
Hello
I am trying to get the required actions correct in this situation - can't hide behind a stack trace any longer.

According to the IBM book on JMS with WebSphere (Kareem Yusuf): "a TransactionRolledBackException must be thrown when a call to Session.commit results in a rollback of the current transaction".

I am having to assume that this is the same as saying "when a commit fails, the transaction gets rolled back and a TransactionRolledBackException must be thrown".

Is my assumption correct, or are things more subtle?

Regards, John
Updated on 2007-10-16T15:42:22Z at 2007-10-16T15:42:22Z by Raghuram
  • Raghuram
    Raghuram
    7 Posts
    ACCEPTED ANSWER

    Re: MQe: what happens when JMS Session.commit fails?

    ‏2007-10-16T15:42:22Z  in response to JohnO
    Hi,

    JMS specification says that TransactionRolledBackException must be thrown when a call to Session.commit results in a rollback of the current transaction.

    In MQ Everyplace TransactionRolledBackException is thrown if the transaction gets rolled back due to some internal error during commit.

    It depends on the JMS implementation as to how the implementor handles certain scenarios.

    --Ram