IS460 Testing the rollback feature in CMP transactions

0 views
Skip to first unread message

john.g.m...@gmail.com

unread,
Apr 22, 2006, 9:13:53 PM4/22/06
to BYU-Idaho Information Systems Majors
In our last assignment when we were working with transaction control we
made our PayBills Bean require a transaction. In doing that we had to
write an exception that would rollback the transaction.

When I did this I thought to my self "How in the world can I test
this?" I couldn't think of a way to cause a problem.

Today I was working on my JMS assignment and testing my Pay Bill
Asynchronously functionality. Instead of going back the home page and
paying the bill again I just hit the refresh button on my browser to
see the new balance after the message was sent. This caused some sort
of problem with the transaction since this resent an identical request
to pay the bill. When I looked at my server output I saw a
TransactionRollBackException Error. So it works. I never thought that
I would see it happen but it did

I thought someone else might want to test it as well.

-John

Reed Stone

unread,
Apr 25, 2006, 6:09:44 PM4/25/06
to BYU-Idaho-Informat...@googlegroups.com
Hey this is reed's wife and I was wondering what kind of deal you have on your apartment.  I've got friends looking for a new place, and remembered you were moving and just wanted to check.  Thanks!
Reply all
Reply to author
Forward
0 new messages