Seperate DB Update not working at the end of transaction after polling DB

I am using DB Adapters in OSB(built using JDveloper) to poll a DB. I am doing logical delete on one of the field(PROC_RSLT) on table by updating read column to 0.
The issue is after I have done the polling and send the polled data to external party, external party send me a response which I have to again update to PROC_RSLT field.
1. This update is not working if my JCA adapter proxy service having "transaction" and "Same Transaction For Response " options are disabled.
2. When I enable the "Same Transaction For Response" option my DB update after external system with external system response is possible but logical delete(update to 0) on PROC_RSLT happen only after transaction is completed.
Since PROC_RSLT is not updated to 0 same record is polled by adapter multiple times. I want my PROC_RSLT to be updated as soon as it poll and also my DB update to happen with external system response
Can anyone help?
Thanks

Please refer section "Update a Field in the [Table_Name] Table (Logical Delete)" at below link -
http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_db.htm#BABEEBIH
Database Configuration: A status column on the table being polled must exist. If it does not exist already, you can add one to an existing table.
Support for Polling for Updates: Given that rows are not deleted with each read, it is possible to repetitively read a row multiple times. You must add a trigger to reset the mark read field whenever a record is changed, as follows:
create trigger Employee_modified
before update on Employee
for each row
begin
:new.STATUS := 'MODIFIED';
end;
Support for Concurrent Access Polling: Just as a single instance should never process an event more than once, the same applies to a collection of instances. Therefore, before processing a record, an instance must reserve that record with a unique value. Again, the status column can be used:
<operation name="receive">
<jca:operation
ActivationSpec="oracle.tip.adapter.db.DBActivationSpec"
PollingStrategyName="LogicalDeletePollingStrategy"
MarkReadField="STATUS"
MarkUnreadValue="UNPROCESSED"
MarkReservedValue="RESERVED${IP-2}-${weblogic.Name-1}-${instance}"
MarkReadValue="PROCESSED"
The polling query instead appears, as shown in the following example:
Update EMPLOYE set STATUS = 'RESERVED65-1-1' where (CRITERIA) AND (STATUS = 'UNPROCESSED');
Select … from EMPLOYEE where (CRITERIA) AND (STATUS = 'RESERVED65-1-1');
The after-read UPDATE is faster because it can update all:
Update EMPLOYEE set STATUS = 'PROCESSED' where (CRITERIA) AND (STATUS = 'RESERVED65-1-1');Your second aaproach should work -
2. With option ”Same transaction for Response” Enabled : PROC_RSLT is not updated to 0 as soon as record is polled. Instead it is updated to resultcode from CSM at the end of transaction. By that time DB adapter poll for multiple times as PROC_RSLT is still considered unread(not 0).Regards,
Anuj

Similar Messages

  • Bug Report: Hotzone navigation does not work at the end of a flattened article

    I was writing about this earlier but I think it did not catch on.
    I experience problems when using Hot zones in my custom viewer together with flatteened articles. when I reach the end of a flattened article, tapping the hotzone does not advance to the next article. this also happens at the first page of the flattened article when I try to get to the previous article.
    —Johannes

    In case you do not know...
    If you want to limit css to specific sites you can do, e.g.
    <pre>@-moz-document url-prefix(http://www.example.com/example_dir/)
    css for this site/directory
    }</pre>
    (There are other varieties of this construction too.
    Even easier is to use the Stylish addon.
    https://addons.mozilla.org/en-US/firefox/addon/2108/

  • My pc has a virus I just downloaded song from pc to kids ipods now both ipods are not working correctly could the virus be in the ipods,  if not why are both not working doing the same thing right after unplugging from pc.

    Can an ipod get a virus from a pc that has a virus.  After connecting two different ipods to my pc to download music they both are not working correctly, could the virus have transferred to the ipod,  if not why would both ipods not work and be doing the same thing?  When trying to click on a game it just stays on the main screen.

    - I have not heard of a virus that can cause problem with an iDvice that has not been jailbroken.
    - Try resetting the iPods. nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Do you hve problems with one game? The same game on both iPods?
    Other apps?

  • Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page...

    Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page..

    [BUG FIXED, see "EDIT 2" at the end of my post]
    I'm on Firefox 3.6.21, and I got this problem today after a Greasemonkey update (To version 0.9.10, apparently).
    Disabling Greasemonkey solved the problem, and re-enabling it reproduced the problem (middle-clicking links to open in new tab did not work, merely highlighted the link).
    I should also note that while Greasemonkey was enabled and the bug was affecting me, Ctrl+Click to open links in new tabs was also broken.
    I hope this helps!
    EDIT: It appears this is a known incompatibility/conflict bug between current versions of Greasemonkey and Tab Mix Plus. Read more here:
    https://github.com/greasemonkey/greasemonkey/issues/1406
    EDIT 2: GREASEMONKEY HAS NOW BEEN UPDATED with a workaround to fix the problem. Go to https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/ to install the update manually. It hasn't been reviewed by Mozilla yet, so it won't be an automatic update for another day or two. All credit to "cannonfodder" below for noticing this; please mark his post as helpful!

  • HT4623 I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working f

    I have tried to update my iPhone using the iTunes method but it will not work. The message "The iTunes update server could not be contacted. Please check your internet connection or try again later," appears. What do I do? The Internet is working fine.

    Have you tried the following troubleshooting document?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    If you end up using the If the iTunes Store opens successfully section of the document, and the "Automatically detect settings" checkbox is already checked, try unchecking and rechecking it and clicking OK.

  • TS1702 When I update to IOS6 on my 4S Facebook does not work properly, the news feed never updates it only says no new storeys and shows a picture of an antenna. When I reset my phone and go back to IOS5 Facebook works fine. What's up with IOS6 ????

    When I update my iPhone 4S to iOS six Facebook does not work properly the newsfeed doesn't load properly and I can never see what's going on all I see is a picture of an antenna and a little thing underneath it says no new stories when I reset my phone back to iOS 5 then it works just fine and I don't have any issues so there must be something wrong with iOS six that isn't letting Facebook load properly

    No I did not use any unauthorized methods for anything, I simply reset my phone back to factory.
    <Edited By Host>

  • Safari is not working on the Mac. Internet is fine, mail, App Store etc all working and connecting to Internet fine. Done the latest software update, still not working. When selecting a web address from bookmarks or typing in search bar, partial blue bar.

    Safari is not working on the Mac. Internet is fine. mail, App Store etc all working and connecting to Internet fine. Done the latest software update, still not working. When selecting a web address from bookmarks or typing in search bar, partial blue bar only and coloured wheel appears.

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the malfunctioning extension by uninstalling and reinstalling it. That will revert its settings to the defaults.
    If extensions aren't causing the problem, see below.
    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • My "update all" buton will not work in the app store.  It gives me a message saying there is not enough storage to update.. I know i have storage left on the phone.  I even bought more icloud storage.  Any ideas??? Please help??? thanks

    My update all button will not work in the app store.  It keeps giving me a crazy message about not having enough storage to update apps.  Please help? I know i have storgage on icloud and on the phone itself.  Any ideas? Thanks

    Try deleting the old backup.
    Settings>iCloud>Storage & Backup>Manage Storage, tap the device name and on the resulting screen, scroll down and tap on Delete Backup.

  • IPod shuffle 2nd Gen is not recognized on PC, but other shuffles are. Software is updated. Is this the end of the road for this particular shuffle?

    iPod shuffle 2nd Gen is not recognized on PC, but other shuffles are. Software is updated. Is this the end of the road for this particular shuffle?

    Hi envisionquest,
    I'm sorry to hear you are having issues with your iPod. If your 2nd Gen iPod shuffle isn't being recognized by iTunes (but other are), you may find the troubleshooting steps outlined in the following Troubleshooting Assistant helpful:
    Apple - Support - iPod - iPod shuffle (2nd generation) Troubleshooting
    Regards,
    - Brenden

  • Update query not working in the JDBC sender Communication channel

    Hi,
    We are working on JDBC to File scenario. As per the configuration, XI should pick the data from SQL database every 20 secs and should update the corresponding flag. We are using subquery in the select and update statement as both header and detail tables are involved.
    Now the issue is, select query is working fine but update statement is not working as expected. It is somehow updating some other records rather than doing for the ones selected by the adapter.
    Moreover logSQLstatement is also not working. Hence we are unable to identify the records which are getting updated.
    Please advise.

    Hi Rumi,
    See Question 8. Transaction Handling (Sender) in [SAP Note 831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=831162].
    8.  Transaction Handling (Sender)
    Q: If I have the following configured in a JDBC Sender:
    Select Query:
    SELECT column FROM TABLENAME WHERE FLAG = "TRUE"
    Update Query:
    UPDATE TABLENAME SET FLAG = "FALSE" WHERE FLAG = "TRUE"
    How do I know that the JDBC adapter will not update newly added rows (rows that were
    added between the time that the SELECT and UPDATE queries were executed) that were
    not read in the initial SELECT query?
    A: The SELECT and the UPDATE are run in the same DB transaction, i.e. both statements
    have the same view on the database.
    Make sure that both statements use the same WHERE clause. An additional
    requirement for the correct operation of this scenario is the configuration of
    an appropriate transaction isolation level on the database
    (i.e., repeatable_read or serializable). You might also consider using a
    "SELECT FOR UPDATE" statement instead of a plain SELECT statement to
    ensure proper locking on the database. "SELECT FOR UPDATE"
    is not supported in MS SQL database. In this case please make use of an
    appropriate transaction isolation level on the database. For more details
    please contact your DB vendors.
    After, see Transaction Handling Issues in [SAP Note 1039779 - JDBC Adapter issues(Escape character,Transaction handling)|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039779].
    Best Regards.
    Pedro Baroni

  • Do I have to buy Lion or snow lepoard or is there a way to updated from OS X 10.4.11?? I have a new ipod that will not work without the ne itunes, but the new itunes will not install without a newer vesion of Max OS X. Help please :)

    Do I have to buy Lion or snow lepoard or is there a way to updated from OS X 10.4.11?? I have a new ipod that will not work without the ne itunes, but the new itunes will not install without a newer vesion of Max OS X. Help please

    Need to know your Mac model. If it's a PowerPC, the max OS is Leopard 10.5.x. If it's an Intel procesor, you can upgrade to Snow Leopard (for $29) & later to Lion.
    *Mac OS X 10.5 Leopard installation system requirements*
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store *but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753)*.
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
     Cheers, Tom

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • My Font Book tells me it will not work in the present system. I have 10.6.8. How can I update my Font. Book?

    My FontBook tells me it will not work in the present system. I have 10.6.8. How can I update my Fon Book?

    Click here, check that your computer meets the requirements, buy and install the DVD, and then run Software Update.
    (73181)

  • Updates tab not working in the App Store

    The updates tab is not working in the App Store. I have to go to purchased tab to find the apps that need updating. How can I fix this? I've turn off the iPad multiple times hoping it will reboot but it doesn't help.

    Apparently there are problems updating updates on iOS devices >  Apps update not working. Was before but...: Apple Support Communities
    Try again later or tomorrow.
    It's been reported to Apple.

  • I've updated to iso5 on my iphone 4 but some of the features are not working like the lock screen camera feature.  Have I done something wrong?

    I've updated my iphone 4 to ISO 5.  I could not connect to icloud yet however does this expalin why some of the features of ISO 5 are not working like the camera lock screen feature?
    Thanks
    C

    to see the camera icon, double-click the home button when you are on the lock screen. this will show the music controls and the camera icon. double click the home bgutton again to close them.

Maybe you are looking for