Roll back in Adapter DataBase using Polling | BPEL 11g

Hello Guys,
I'm having a problem with roll back for polling "Update a field in Table(Logical Delete)" in DataBase Adapter BPEL 11g.
My process is:
Does polling in the table from the database changed the value in column from 0 for 1 and then put the message on a JMS queue.
The problem is:
When an exception occurs in the process, for example, exception when posting message in the queue, he does not roll back the database, then the value in the table column is changed to 1 and not 0 as it should.
Adapter Data Base:
Oracle XA
Properties BPEL(Composite):
<binding.jca config="XXXX_db.jca">
    <property name="singleton">true</property>
</binding.jca>
<component name="XXXXX" version="2.0">
    <implementation.bpel src="XXXXX.bpel"/>
    <property name="bpel.config.transaction" type="xs:string" many="false">required</property>
    <property name="bpel.config.oneWayDeliveryPolicy">sync</property>
</component>
Properties JCA of Data Base:
<property name="DescriptorName" value="XXXXXXXXX"/>
      <property name="QueryName" value="XXXXXXSelect"/>
      <property name="MappingsMetaDataURL" value="XXXXXX-or-mappings.xml"/>
      <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
      <property name="MarkReadColumn" value="STATUS"/>
      <property name="MarkReadValue" value="1"/>
      <property name="MarkReservedValue" value="2${weblogic.Name}-${IP}"/>
      <property name="MarkUnreadValue" value="0"/>
      <property name="PollingInterval" value="5"/>
      <property name="MaxRaiseSize" value="1"/>
      <property name="MaxTransactionSize" value="10"/>
      <property name="NumberOfThreads" value="1"/>
      <property name="ReturnSingleResultSet" value="false"/>
Its roll back?
Could anyone please help me on this.
Tks,
Azevedo, Artur.

You need to ensure that your process is working in a single transaction.
You are correctly using the XA datasource.
Next you need to ensure that you do not have a dehydration point in the process and if there is a call to another BPEL process they are in a same transaction.

Similar Messages

  • Polling from the database view in BPEL 11g

    Hi,
    We do have a requirement of polling from the database view in BPEL 11g. I am exploring the following polling strategies in our case:
    - Delete
    - Logical Delete
    In case of Delete polling strategy, can we delete the record as the view does not allow deletion. In this case, do we have any other way to achieve this functionality?
    In case of Logical Delete, We have to mark the status column with particular value. how could we achieve the same when the view is not updateable.
    In 10g, we can override the delete polling strategy with an update statement. Is it possible in 11g?
    Thanks & Regards
    Siva

    Hi,
    I am also doing the same thing what you have done, please help me.
    I have used BPEL export utility for exporting my JPDs to BPEL. but it was not a good help, ultimately i m creating a process manually.
    the main problem what is the replacement of control(jcx files)
    please guide me really it would be great help..
    Thanks in advance and hope to hear from you.
    my mail id is [email protected]
    please send some document if you have...

  • Which is the Best option to work with Database using Polling or AQ or Event

    Hi,
    We can initiate a BPEL process in a SOA composite from database using Database Polling . But few people suggest not to use polling because resource will always be busy polling and heavy load can cause issues.
    So they suggest to use AQ to push message to initiate the BPEL process or SOA composite.
    Is this true??
    Also we can use EDN to intiate a process from PL/SQL.
    So is it a better option than AQ.
    What are the factors we should consider while using Poling ,AQ or Event based system?
    Regards
    Pradosh

    Any pointer to this Question??

  • Writing back to a database using adobe flex

    According to the demo on
    [http://www.businessobjects.com/global/flash/product/catalog/crystalreports/demo_operational_reporting/operationalreporting_viewlet_swf.html|http://www.businessobjects.com/global/flash/product/catalog/crystalreports/demo_operational_reporting/operationalreporting_viewlet_swf.html]
    it is possible to write back to a database.
    I have however some questions regarding this functionality:
    1. Can it write back to any given database and table?
    2. In the example there is a list of countries with figures. Is it possible to overwrite these figures for each country (visually on the report) and write that back to another table?
    3. If the values canu2019t be overwritten as in question 2, could there be a field inserted next to each row in the sample and can this be written to some table?
    4. If either question 2 or 3 is answered positively, are changes saved all at once or does the user need to hit a save button for every row?
    5. And if the user wishes to have a save button for every row would this be possible?
    Many thanks
    Jeroen

    Hi Beltamn
    I hope this post will help you. Try the resolution with xtreme sample database first.
    Here it is:
    I have used SQL Server database.
    Below is the code to create the table:
    Create table CountryWiseSum
    Country    varchar(20),
    Summary    number(20)       
    Below is the code to create the procedure:
    Create procedure InsertCountryWiseSum
    @Country    varchar(20),
    @Summary    number(20)
    as
    Begin
    insert into CountryWiseSum
    values(@Country,@Summary)
    Select 1
    End
    Now create a report grouped by countries based on the Extreme sample database.
    In this report create a formula as follows:
    numbervar x:=0;
    x := tonumber(x + sum({Customer.Last Year's Sales},{Customer.Country}));
    Name the formula as "GroupSummary" and place it in the group header section of the main report. The formula is used to calculate the Countrywise sum of the Last Year's Sales.
    Now create a SubReport in the group footer as follows:
    1. Use native or oledb connection to connect to SQL Server. Because this solution was tested with oledb connection.
    2. Locate the database name where you have created the table and procedure mentioned above.
    3. find the procedure name and add it to the "Selected tables" window.
    4. The Selected tables' list should have a entry like this:
    InsertCountryWiseSum;1
    5. Click OK. Now drag the "Expr1000" field from the field explorer to the details section.
    6. This action creates two parameters as @Country and @Summary.
    7. Go back to the main report and link this subreport's @Country parameter to the Country field in main report and the @Summary parameter to the "GroupSummary" formula field in the main report.
    8. Thats it! Refresh the report and the records would be inserted in the database. To ensure all records are inserted in the database, go to the last page of the report.
    9. To check with the database,if the records are inserted or not, try the following steps:
        a. Open the SQL Server's Query Analyser tool, log in and choose the database where we had created our 
            "CountryWiseSum" table.
        b. Use following statement to check the records:
            Select * from CountryWiseSum
    This shows all the 71 country names along with their Last Year's Sales'
    sum.
    I hope this would help.
    Regards
    Nikhil

  • Transaction rolled back......soa 11g

    I have a bpel process 1 which calls bpel process 2. Bpel process 2 is a file write. In my instance bpel process 2 is called and the file is written successfully. but bpel process 1 gets errored out with no errors being displayed. The bpel process 1 has a red colour at the point where it invokes the child process. and also a line saying transaction rolled back.
    But there is no error in the child process instance
    Please do suggest me the solution.

    The issue may be due to the transaction timeout, verify the configured timeouts and the processing time of the process B.
    Try increasing Sync Max Time Out and the other timeouts accordingly and test it.
    Refer the below URL for the details of configuring the timeouts.
    http://www.albinsblog.com/2011/11/oracle-soa-11g-configure-transaction_20.html
    Regards
    Albin I

  • Getting error while backing up SQL database using powershell

    I am trying to backup SQL database but strange thing is taking lpace, few databases i can backup with powershell but few i am getting error
        Exception calling "SqlBackup" with "1" argument(s): "Backup failed for Server 
        'Server1'. "
        At C:\_Scripts\defaultbackup.ps1:40 char:1
        + $smoBackup.SqlBackup($server)
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : FailedOperationException
        $dbToBackup = "test"
        #clear screen
        cls
        #load assemblies
        #note need to load SqlServer.SmoExtended to use SMO backup in SQL Server 2008
        #otherwise may get this error
        #Cannot find type [Microsoft.SqlServer.Management.Smo.Backup]: make sure
        #the assembly containing this type is loaded.
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | 
        Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") 
        | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-  
        Null
        #create a new server object
        $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") "(local)"
        $backupDirectory = $server.Settings.BackupDirectory
        "Default Backup Directory: " + $backupDirectory
        $db = $server.Databases[$dbToBackup]
         $dbName = $db.Name
         $timestamp = Get-Date -format yyyyMMddHHmmss
        $smoBackup = New-Object ("Microsoft.SqlServer.Management.Smo.Backup")
        #BackupActionType specifies the type of backup.
        #Options are Database, Files, Log
        #This belongs in Microsoft.SqlServer.SmoExtended assembly
        $smoBackup.Action = "Database"
        $smoBackup.BackupSetDescription = "Full Backup of " + $dbName
        $smoBackup.BackupSetName = $dbName + " Backup"
        $smoBackup.Database = $dbName
        $smoBackup.MediaDescription = "Disk"
        $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp +   
        ".bak",   
        "File")
        $smoBackup.SqlBackup($server)
        #let's confirm, let's list list all backup files
        $directory = Get-ChildItem $backupDirectory
       $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp + ".bak", "File")
    $smoBackup.SqlBackup($server)
    #let's confirm, let's list list all backup files
    $directory = Get-ChildItem $backupDirectory
    #list only files that end in .bak, assuming this is your convention for all backup files
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime
    I read on internet that by using this in the script this problem can be sorted but i am
    not sure where exactly to put this line in above script set the ConnectionContext.StatementTimeout to 0
                  

    Hi Srk,
    I found the similar issue in this article, which had been sovled by adding the script below:
    $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") $dbInstance
    $server.ConnectionContext.StatementTimeout = 0
    Refer to:
    Exception calling "SqlBackup" with "1" argument(s)
    Please feel free to let me know if this method can not work.
    Best Regards,
    Anna Wang

  • After the update before last (6.0.1 I think) Firefox crashed on resart and failed to send in the error report; I've had to roll back to V4 to use Firefox - any clues?

    The update to 6.0, 6.0.1 or 6.0.2 will not run on my system. Th einstall goes ok, the restart starts, throws up a bunch of Java incompatabilities then crashes with the apology screen offering to send in a report if I hit restart or quit. No matter how many times I hit restart, the report submission fails and Firefox stays crashed. Looking at my crash reports, the problem seems to start on or around August 18th 2011 - the crash ID below is the last generated (not found at your end obviously, as it never reached you)

    Thanks for the suggestion;
    Complete uninstall (Bookmarks saved to X-Marks), re-install, same problem (minus the imcompatible Jave bits & bobs, 'cos they weren't there to be objected to).
    So I'm back to V4 (might try hunting down a newer (pre V6) version)

  • How to update database using Service in 11g

    Please some one provide the knowledge, how i will update database from a form and form is having multiple rows and column and and all are having different or same value.
    e.g. we have having clientName table and having column(clientname, legalContact, selfservice,usertype,details),
    We can search the data from clientName, now user can change other information except clientName can not be change but other information can change. now how i will update users changed value.

    Hi ,
    If you are looking to update the fields for a user such as description , telephone number etc then the following service needs to be used :
    UPDATE_USER_META_TABLE
    Details for this are available in : http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#CSSRG2503
    Hope this helps .
    Thanks,
    Srinath

  • Transaction Process not rolling back

    Hi Experts,
    I am testing the Transaction Process which uses a DB Adapter (which calls a procedure) to insert data into a table. There are 2 fileds in the table (employee id and employee name) and in this employee id is the primary key. In the same scope I invoke this DB Adapter PL twice and for the first invoke it went fine but for the second invoke it has thrown me a unique constraint exception (as again I am passing the same data). I am catching the exception with a catch all block which is working absolutely fine.
    The problem is in the table I am getting the data entry for the first invoke which should have roll backed as i am using the *'transaction=participate'* property and respective changes have been done in bpel.xml for supporting the transaction.
    There should be no entry in the table but yet I am getting it. Please help me.
    Where could I have gone wrong?????
    I am using BPEL-10.1.3.1 version.
    Thanks in advance.
    Cheers,
    Ankit
    Edited by: user11083689 on Apr 24, 2009 4:41 AM

    hi,
    There are two mechanisms to force a rollback from a BPEL process.
    Explicitly — throw a bpelx:rollback fault within your flow:
    <throw name="Throw" faultName="bpelx:rollback"/>
    Invoke a partner link that marks the JTA transaction for rollback only.
    For example, in Oracle SOA Suite for 10.1.3.1.0, if Oracle BPEL Process Manager invokes an Oracle Enterprise Service Bus (ESB) flow that in turn fails to call a Web service endpoint, the JTA transaction is marked for rollback. Since the Oracle ESB flow enlists its local transaction in the JTA transaction, a rollback on the JTA transaction impacts Oracle BPEL Process Manager's ability to dehydrate (as the JTA transaction is used by Oracle BPEL Process Manager for persistence).
    regards
    Rajesh

  • How do I roll back to iphoto 08

    I just upgraded to iphoto 09, so disappointed. How can I roll back to iphoto 08 using time machine backup? Thanks Alex

    Export any photos you have imported wince installing iPhoto '09, Delete iPhoto '09 and all iPhoto receipts ("your harddrive" ==> library ==> receipts ==> ), install iPhoto '08 and go back in TM to your last iPhoto '08 library and restore it - any photos you have imported since the upgrade will not be there so import them from the export above
    LN
    Message was edited by: LarryHN

  • Report Action in JMS Proxy gets rolled back

    I am using the report action to do auditing in my proxies. To date this has worked well for both successful and error transactions.
    However when using a jms proy the report actions get rolled back. They actually didn't get rolled back when I was using the test console, but when the data comes from the queue they do.
    Is there a way to change this behaviour so that the report is always separate from the main transaction?
    Could this be a pointbase issue and will it have a differnt result using Oracle?
    Thanks,
    Ryan

    You can always write your own implementation of a reporting provider, overriding teh default report action. I once made a post about this: http://forums.bea.com/thread.jspa?threadID=400001303
    By using a custom implementation you can meet your own company's specific reporting requirements.
    If you want to stick with out-of-box report action:
    - Pointbase can be tricky, best to test with oracle.
    - It depends on the jdbc driver used, ie XA or non-XA.
    Find tips and tricks about ALSB at my blog: http://dev2dev.bea.com/blog/jordinho/

  • Roll back to Skype 2 from Skype 4.0?

    I upgraded to Skype 4.0 lately and don't really care for the changes that have been made.
    How can I roll back to previous version using pacman?

    smakked wrote:Wow i thought it was good i have no issues at all, none that you have listed and find the new client more stable with better video quality.
    Yeah, I've used it once since upgrading. It worked fine for me too.
    bt wrote:I sympathize. The new skype does not show when contacts are online, and there is no longer notification when someone comes online. In addition the huge box that appears when you make a call takes up far too much real estate. I suppose there is a way to return to the small box. I can downgrade, but I hesitate to keep old packages current.
    I have big dreams of replacing Skype with a free and open source solution that the people I chat with are actually willing to use.
    Last edited by drcouzelis (2012-06-19 16:08:35)

  • Using Oracle EM 11g with Active Data Guard 11g

    Has anyone installed Active Data Guard 11g with OEM 11g for an active-active state or know if there are any installation procedures with these two products? We will be installing these products this year. Thanks, Cathy

    If you already have both servers configured in Grid Control as targets, it should be fairly easy to create a standby database on server B. OEM has Availability tab on your primary database Instance section should have "Data Guard" section which has "Setup and Manage" option. You follow through the wizard, and it will generate a standby database on server B. Then you can convert your standby db on server B to Active Read-only database by clicking few more buttons.
    If you do not have these two servers configured on your Grid Control, that would be the first task.
    We set up three standby databases using Grid Control 11g in our test boxes, and they worked very well. Our biggest problem was to actually installing the Grid Control, but once installed, everything was easy.

  • How to use Database adapter as inbound adapter without having polling strategies?

    Hi All,
    I have a requirement wherein I have to use Database adapter to retrieve the data for every half an hour from one(X app) database and update that data into another application(Y app) .That database adapter will be along with BPEL process.My Flow would be like this:
    Database Adapter( In 'exposed services' section) ----->   BPEL (in 'Components') -----> Y app service( in 'External References' section)
    My questions for each step are below
         1) I have to retrieve the data from database(x app database) for every half an hour.So I have to schedule my whole process such that it should execute for every half an hour.
    Means I have to get  whatever the data is updated in the last half an hour in that database.
          The database adapter should be inbound in SOA composite editor(in 'Exposed services' section).
    But in order to have inbound adapter,we have select the 'Poll for New or Changed Records in a Table' option in turn we have to select one of polling operations below:
             Delete the Row(s) that were Read
    Update a Field in the [Table_Name] Table (Logical Delete)
    Update a Sequencing Table
    Update an External Sequencing Table on a Different Database
    Control Table Strategy
    But the problem is I don't have any control on the database(X app database) ,So (I can't update any data on that table,because that table may not have a field or table to update the processed rows)I can't choose any of the above operations.
    How can I achieve what I want that is to retrieve the data and schedule the process?
    Thanks in advance.

    Hi Heckler,
      Thank you very much for your answer that I can proceed further somehow.
    I still need to have some clarifications.
    In order to have a process which retrieves the data (Inbound operation) and updates the data into other application, the data(from X app)  should be the request(through DB adapter) of the BPEL process.
    X app does not do anything to send.We have(the BPEL process) to receive the data (or) no event is triggered.
    The flow :
    Database Adapter( In 'exposed services' section to retrieve data) ----->   BPEL (in 'Components') -----> Y app service( in 'External References' section)
    How can we ensure the data will be  request to BPEL process(means it will be in 'exposed services' section in SOA composite editor) for every half an hour if we use pick activity and database adapter as first activity?
    When we use ''Poll for New or Changed Records in a Table' ,then only adapter becomes inbound and comes into the 'exposed services' section.I can't use it as I don't have any control on the source table.
    I have this confusion before starting the process.Please help me to clear out the doubts.
    And this whole process should be executed automaticallly for every half an hour(means it creates instance for every half an hour)  Once we build the BPEL process.
    How to schedule it?
    And where do I need to create control table ?You mean I have to use some different database where in I have to create the table?

  • Question regarding Polling data from database using DB Adapters in BPEL

    Hi,
    I have the following question regarding Polling data from database using DB Adapters in BPEL -
    If I am selecting data from multiple tables/view to ultimately generate hierarchical xml document, is there a way that I specify polling all of these tables/views. Is polling limited only to one table/view?
    Thanks
    Ravi

    Hi Ravi,
    your question seems to have been answered for the question of polling a set of tables with one as the root, and getting back a hierarchical xml representing multiple related tables.
    However you can also poll for changes to both the root table and its related tables. Not sure if this was your question or the one already answered. If the former please check out the sample
    bpel/samples/tutorials/122.DBAdapter/advanced/polling/PollingForChildUpdates
    Thanks
    Steve

Maybe you are looking for

  • Any good way to store configuration file?

    I need to store some configuration information in a file from Java. This file will be used by a C++ module. I know we can use XMLEncoder to serialize a Java object to XML file. Is there a opensource C++ library that can parse the XML file something s

  • OID External Authentication issue

    Hi.. I have configured synchronization profile to import users from TDS to OID using DIP but it does not work as change log is not enabled on TDS side. Now i have configured External Authentication Plugin and i craeted same users in in TDS and also i

  • I had to revert my PC to factory settings. I have a recovery folder. How do I get my address book and mail folders back?

    I had a serious system problem on my PC and had to restore it to its factory configuration. During the process, I was prompted by Windows to create a recovery folder on an external device. I have mostly recovered from my disaster. I have reinstalled

  • Providing itunes credit card info

    Is there any way to get around adding credit card info when changing/adding appleid ?  I do not purchase music/videos, etc. from my phone.

  • Using disk-enabled iPod

    I am using my iPod Nano to transfer items from my iMac DV using OS 10.4 to my other iMac Tray load using OS 9.2. The OS 9 recognizes the iPod as a mass storage device in the system profiler, but I cant find a way to access the files on it. Is there a