May 2001
Intermediate to advanced
1088 pages
30h 13m
English
| Q1: | Why do I get an error when I call setRollbackOnly? |
| Your method probably has a transaction type of Supports, Never, or NotSupported. You can only roll back a transaction when the method's transaction type is Required, RequiresNew, or Mandatory. | |
| Q2: | Why can't I call getUserTransaction when I use CMT? |
| By using CMT you have agreed that you don't want to manage your bean's transaction scope. You shouldn't be using the UserTransaction object anyway. |
| Q1: | Why do I get an error when I call setRollbackOnly on the SessionContext object? |
| When using BMT, you should use the setRollbackOnly in the UserTransaction object (which you get by calling getUserTransaction on the SessionObject). | |
| Q2: | Isn't the BMT a subway? |
| Yes, the ... |
Read now
Unlock full access