DS sends updates to DB only in commit (can't find modified data in same TX)
Hello experts!
We have a physical data service mapping a simple Oracle database table. When we update one record in the database (invoking submit on the DS), and use a function in that same dataservice to get the refreshed record, the updated column comes with the OLD value. But after the transaction ends (we isolated this is a simple JWS), the database gets updated.
The most strange fact: we also did a test using another Data Service to do the update, now mapping a stored procedure to do the updates (without commits in body). Then the test works fine.
The conclusion I can reach is DSP is holding the instance somewhere after the submit() and is not sending it to the database connection. I understand that the commit is not performed, but if I do a query in the same TX, I should see my changed, shouldn't I?
We use WL 8.1.6 with DSP 2.5.
We´d appreciate very much if yuo guys could help.
Thanks,
Zica.
Let me get your scenario straight
client starts a transaction
client calls submit to update a data services
client calls read to re-read the update value (does not see update)
client ends the transaction
If you read now, you will see the update
And you're wondering why the first read doesn't seem the update values?
By default, ALDSP 2.5 reads are through an EJB that has trans-attrib=NotSupported - which means if you do a read within a transaction, that transaction is suspended the call is made without any transaction, then the transaction is resumed. So this is one reason you don't see the read. To do the read via an EJB method with trans-attribute=Required. See TRANSACTION SUPPORT at http://e-docs.bea.com/aldsp/docs25/javadoc/com/bea/dsp/dsmediator/client/DataServiceFactory.html
If you are using the control, the control will need to specify
@jc:LiquidData ReadTransactionAttribute="Required"
That is only part of the solution. You will also need to configure your connection pool with the property KeepXAConnTillTxComplete="true" to ensure that your read is on the same connection as your write.
<JDBCConnectionPool CapacityIncrement="2"
KeepXAConnTillTxComplete="true" />
Then I have to ask - if your client already has the modified DataObject in memory, what's the purpose of re-reading it? If all you need is a clean ChangeSummary so you can do more changes (the ChangeSummary is not cleared when you call submit), you can simply call myDataObject..getDataGraph().getChangeSummary().beginLogging()
Similar Messages
-
Does anyone know where to get a copy of the OS X 10.6.5 update? Apples' site says it can't find the page and the only other downloads i've found on the net say you need to have 10.6.5 to install 10.6.5. HUH?
It's right here from Apple, at least for me.
Combo http://support.apple.com/kb/DL1324
Delta http://support.apple.com/kb/DL1325
Any reason you want the 10.6.5? You do know that the latest and final is the 10.6.8. -
TS2518 how do I update my Aperture 3? I can't find where to download it.
how do I update my Aperture 3? I can't find where to download it?
What is your current Aperture version? And how did you buy Aperture originally?
If you bought it from the App Store, you should see it in the "Updates" tab of the App Store window; if you bought it differently use "Software Update" from the "Apple" menu.
Software update will only work, if Aperture is installed in the Applications folder, not a subfolder of this folder, and if it has not been renamed. It must simply be called "Aperture".
Regards
Léonie -
How do i update my camera raw? I can not find the download update I've just brought a new d4s and I'm using the iMac with cs6 version. PLEASE HELP..
The Adobe auto updater is pretty decent in CS6. Just go to the Photoshop Help menu > Updates.
You will be able to update ACR, Photoshop and Bridge right there, if there are in fact updates available. -
I can't find the personal hotspot on my iPhone 4 since I updated to iOS 5?, I can't find the personal hotspot on my iPhone 4 since I updated to iOS 5?
Do you pay for a tethering plan? This is a feature that has to be activated by your carrier and is generally NOT free.
-
When sending an email to several people I can't find the address book icon in the tool area
when sending an email to several people I can't find the address book icon in the tool area that used to be at the top of the Leopard system...if you have 20 individual addressees how do I access my address book? j
If you don't see the "shadow man" icon, right click the toolbar and select customize.. drag the icon up to the bar.
-
I backed up my phone before updating the software, but now I can't find my pictures. Help!
Please pardon the intrusion…
Hi, Chris!
Congratulations on advancing to Level 6!
At the Water Cooler in the Level 6+ Lounge, we are throwing virtual confetti in celebration of your attainment of Level 6-dom. Would you care to join us at the Water Cooler?
Towards the bottom of the index on the Apple Support Communities Home Page you soon will find the Lounge link available to you. It should work for you within the next 24 hours if all goes as it should.
Hope to see you there soon! -
I have apps that need to be updated, but the only way I can do it is with my computer
I am in Afghanistan, the free wifi spot is too slow or the files are too big to update on my iphone4s. I can connect to the internet and sync my phone without any issues. I can see all my apps with itunes, but there is no place or button that i have seen that says to update my apps. the only option it gives me is to remove the app, which I obviously don't want to do.
How do I get the app updates with my computer without dumping the apps?On your computer, iTunes...left sidebar...if not visible, go to view, show sidebar...click the "Apps" tab under library, then updates, right-click the app/apps you want to update, then update. Or, update all if you like. Then, sync your phone.
-
Updated to IWeb 08 from IWeb06, can't find website files?
I updated to IWeb 08 from IWeb 06 and can't find my old website files. They used to appear when I would just click on the IWeb icon in my dock? Can anyone tell me how to retrieve them?
Many thanks!
JimCheck in your User/Library/Application Support/iWeb folder. There should be a Domain file there which is your iWeb content.
-
Thank you anyone for the help.
The new format of what?
If you're running iOS 6 and want to dowonload updates directly to your iPhone, you can open the App Store and click "Updates" in the lower right and install them from there.
If you're talking about iTunes 11 on your computer, then switch to the Apps button on the upper left and you can download them from there. -
I am trying to update the software on an Ipod Touch 3G but can't find software updates in the generral settings.
What is the firmware of the iPod touch you're updating right now? If it's not 5.x, then you cannot, because that was a primary feature of 5.0 (the mobile software updates). Then, you would have to update the software using your computer and iTunes
-
HT5848 After I did update to 7.1 I still can't find iTunes Radio
After I did the update to 7.1 I still don't have the iTunes Radio tab in my music app
Radio is only available in the US & Australia. So, are you in the US or Australia?
-
Can't send a jpeg to PS2014 because it can't find Photoshop CS2?
When downloading photos with bridge it used to open automaticly to the camera that I was using but the fact that double clicking the file in Bridge won't send it to PScc 2014 with a panel saying it needs Photoshop CS2. exe Bill Fox
All this used to work perfectly with Bridge cc and Photoshop CC.Dklbbdk, I'm sorry to read about this issue! I use text messaging everyday! It's a very important way to communicate. I see that you have performed a master reset. My question would be, did you sign in to your gmail account during the setup? We want to make sure that it didn't autoload previous applications from the Playstore. This will make sure that an application isn't causing the problem. If that doesn't correct it, Samsung offers a software refresh at their store locations.
BobbyN_VZW
Follow us on Twitter @VZWSupport
If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!! -
Good morning to all,
Apple updated my Itunes profile and it no longer shows all of my music files> How can I get all of the music files back that I created?Hi there WALnut@1828,
You may need to recreate the iTunes library. Take a look at the article below for more information.
iTunes: How to re-create your iTunes library and playlists
http://support.apple.com/kb/HT1451
-Griff W. -
where can I update Ps5 to Ps6
https://www.adobe.com/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_sl_ creativesuite6.html?start=10
Maybe you are looking for
-
Hi, I have an (iPad 2) and an iMac (2012). I have one apple ID used for both the itunes and appstore on the iPad, and on the iMac a different apple ID used for the appstore and itunes. What will be the consequences of changing my email ID on the ipad
-
How to intercept clickToEdit action in af table?
Hello, I am using EditingMode: clickToEdit in af table. The functionality i am trying to achieve is when user clicks on table row then he can change some values. It is straight forward. What is tricky is that i am looking to show LOV (af:selectOneCho
-
Internal speaker/headphone problems (like oh so many others)
I bought my husband his iPod mid-September. About two days ago, he realized that the sound coming through the headphones was distorted. When he went to let me listen, i realized that the sound was coming from the internal speaker. I called the highly
-
I have a 30GB Photo, and if I let it sit like overnight, it goes into some sort of sleep mode. When you hit the button to turn it on, the silver apple on black background comes on and the hard drive spins up and when it finishes its killed off almost
-
how do i restore backup from icloud ?