SetRollbackOnly and EJBException..what should happen?
I am wondering what peoples opinions are about what should happen when commiting a transaction in the following scenario.
I have a transaction started by a stateless session bean method. This method just finds an entity bean and sets one of its attributes. When this stateless session bean method finishes, the transaction is commited by the container. While commiting the transaction, the container calls the ejbStore method of the entity bean. The ejbStore method calls a method on a different stateless session ejb. This stateless session ejb method calls setRollbackOnly and throws an ApplicationException. The entity ejbStore method catches the ApplicationException and throws it nested within an EJBException.
The ejb2.0 spec says that the container should throw a javax.ejb.TransactionRolledbackLocalException if it can't commit a transaction. This is what I receive, but my question is what would you expect the nested transaction to be?
I would expect the EJBException that I threw from ejbStore to be the nested exception.
ie. I would expect this....
javax.ejb.TransactionRolledbackLocalException: Error committing transaction:; nested exception is: javax.ejb.EJBException: nested exception is: au.com.sparq.test.ApplicationException: ApplicationException a b c...
But as soon as setRollbackOnly is called, I will only ever receive this exception....
javax.ejb.TransactionRolledbackLocalException: Error committing transaction:; nested exception is: weblogic.transaction.internal.AppSetRollbackOnlyException
Why is an AppSetRollbackOnlyException being thrown by the container when I have told the container to rollback the transaction by throwing the EJBException from the ejbStore method of the entity ejb? In this case, the container shouldn't care that setRollbackOnly had been called. It should only be if the ejbStore method doesn't throw an EJBException that the AppSetRollbackOnlyException is thrown.
The side effect of this behaviour is that I can never get access to the ApplicationException thrown within the ejbStore method, so I can never tell what caused it to fail.
This is the expected behavior since Windows XP/Windows Server 2003.
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Similar Messages
-
i sync my Firefox
i have using i very well but now it creates problem
my Firefox i synchronized but i have to enter password for login again and again what should i do
what will happen if i click on reset sync in options ,will i lose my all dataYes, you will lose all your data stored on the sync server if you reset the sync (recovery) key.
If you do not keep changes after a restart then see:
*http://kb.mozillazine.org/Preferences_not_saved
*https://support.mozilla.org/kb/Preferences+are+not+saved
Is the password manager working properly?
You can find the sync password and the sync key in the password manager on the computer where you originally created that sync account (email).
*Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
Look for:
* chrome://weave (Mozilla Services Password)
* chrome://weave (Mozilla Services Encryption Passphrase) -
when i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do
Start a game with Game Center and go from there.
-
Every time I try to open my safari it restarts my computer, or if it does open it is for only about a minute before it gets and error and closes.What should I do?
gets and error and closes.What should I do?
If Safari is crashing.. post a crash report so we can try and help...
If Safari has just crashed, press the Report button on the CrashReporter dialog box to view the crash information.
Copy/paste the entire contents of the Crash Reporter window into your reply including the, "binary images" seection.
If the crash report dialog does not appear or the crash is hard to reproduce, crash logs can be retrieved from the ~/Library/Logs/CrashReporter> folder. -
I have just getting a new phone and I have forgot my password an Apple ID what I made new for the new phone now I cannot get on it because asking for id and password what should I do help plz thank u
Try
https://iforgot.apple.com -
i've lost my Iphone 4 and found it back. i am unable to restore data. if i connect to itunes its getting restarted again and again. what should I DO ??? TS KEEP ON RESTARTING ALL THE TIME
Hi there balaji007,
You may find the troubleshooting steps in the articles below helpful.
If you can't update or restore your iOS device
http://support.apple.com/kb/ht1808
iPhone: Hardware troubleshooting
http://support.apple.com/kb/ts2802
Will not turn on, will not turn on unless connected to power, or unexpected power off
Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIs and corrosion.
Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
After at least 30 minutes, if:
The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
If the display turns on, go to step 4.
If the display remains black, go to next step.
Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
Issue not resolved
My issue is still not resolved. What do I do next?
Contact Apple Support.
-Griff W. -
I have some problem when I want to download app in iTunes some security question ask me about my visa when I right my visa number I got an errors and on top of the page told me go to iTunes support I do these things and now what should I do
Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
You can contact iTunes Support via this link : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
I would just get the Photosho and illustrator , what should I do ?
I would just get the Photosho and illustrator , what should I do ?
Subscribe to the two plans Creative Cloud pricing and membership plans | Adobe Creative Cloud
-
Just got the Iphone 4s in June, now everytime I go to download an app, it will not download. When I go to get updates, the apps will not download. I tried, reinstalling, resyncing, turning the phone off and on, what is happening? How do I fix this?
Make sure you have the Latest Version of iTunes (v11) Installed on your computer
iTunes free download from www.itunes.com/download -
Someone hacked my apple id and changed my password and email what should i do ?
someone hacked my apple id and changed my password and email what should i do ?
please need help my credit card was insideWhy not? Do they not have phones there?
This is a user forum. There's nothing we can do. -
My Ipad got wet in the rain. Unfortunately it was in my bag it was in sleep mode. Now i am not able to switch it off and it automatically selects different pages and Icons.What should i do. Please help
Solutions for wet iPad.
http://www.gazelle.com/how-to/ipad/ipad-recover-from-water-damage
http://www.knowyourmobile.com/appleiphone/ipad/ipaduserguides/701079/how_to_fix_ an_ipad_if_it_gets_wet.html
Cheers, Tom -
I have ipod nano 4gb silver No: MA978ZP/A. IT IS NOT FUNCTIONING. WHEN I PUT USB INTO MY SYSTEM PORT, THE APPLE SYSTEM IN THE IPOD SCREEN IS BLINING ON AND OFF WHAT SHOULD I DO
See if this helps:
iOS: Unable to Update or Restore -
My iPad color changed?the background is now green and blue .what should I have to do?
go to settings. press on background and wallpaper. choose your new wallpaper. your friends might have changed it on yours or something.
-
No airport card installed! I'm not using the internet and now what should I do?
no airport card installed!
I'm not using the internet and now what should I do? menu/About this Mac/System Information (at the bottom, may be called something else) - run that and see if the Airport card is detected.
Some things you can try.
https://discussions.apple.com/message/22246571#22246571
If you live near an Apple Store, make a Genius Bar appointment to have the computer tested. Supposedly there is no charge for testing.
Genius Bar Reservation US -
I need to publish a magazine in arabic and english - what should I buy - for how much to use 15 mac books for my students to use indesign?
You can only return the machine if you're within 14 days of purchase - otherwise you're just 'stuck' with what you purchased (unless you sell it, of course).
I always recommend that Retina owners order 16GB of RAM as the RAM is not upgradable - it's soldered onto the logic board.
Your call - if you're with 14 days of purchase, take it back and exchange for a 16GB model. Or sell it and buy a model with 16GB. The higher amount of memory will allow you to run far more memory-hungry apps concurrently.
Good luck,
Clinton
Maybe you are looking for
-
Stop Automatic Creation of Inspection Lot for a condition
Dear Gurus, While Creating a Delivery through a Sales Order, Config is maintained such that "Inspection Lot" will be automatically Generated. Now Business wants to Stop this Automatic Creation of Inspection Lot only for a Particular Delivery Type and
-
How to create a transition where a certain area stays the same?
For example, let's say I have 2 pictures of me. They're different, but my face expression is the same in both. I want to create a transition between them (cross dissolve or something) so that my face doesn't get blurred during that transition. Like,
-
Problems with GCC version - compiling OpenOffice
I am trying to compile OpenOffice 4.1.1 to run on 10.6.8. When I run the ./configure it runs for a few seconds then shows the following error: "checking the GNU gcc compiler version... configure: error: found version "1.0.2", use version 3+ of the gc
-
I've found a flex paging example I'd like to get working, but can't seem to get it running. The Example files can be found here: http://blogs.adobe.com/tlf/2008/12/actionscript-pagination-exampl.html I've downloaded and imported the project into flex
-
Hello, I'm having trouble getting to the page where I can put in my activation code for my One to One. I keep getting ID or Password error. Have already reset twice- HELP Plz.