How can I make a 'Rollback Point' when I Insert database.

desiring on edge!

Hi Steven,
just to clarify everything done in one dbadapter invoke uses a single atomic database transaction.
We have no support right now for the jdbc 'savepoint' feature, but from your explanation it seems you want the dbadapter write to be rolled back if the bpel process itself fails.
There is a way to do this, by configuring the dbadapter to bind its transaction to the global bpel instance transaction.
This JTAInsert is not shipped with the ga samples but here is the README:
This is an advanced sample.
Follow the steps to create the Merge sample, but then add a second duplicate
merge invoke.
Attempting to do two duplicate merges of the same object will lead to the
following:
-If the row (title) exists then two duplicate updates will be made.
-If the row (title) does not exist then two inserts will be attempted. The
second insert will fail, causing the first insert to be rolled back aswell.
The only other difference is to add the following adapter instance to your
oc4j-ra.xml and use it instead of eis/DB/BPELSamples:
     <connector-factory location="eis/DB/BPELSamplesDataSource" connector-name="Database Adapter">
          <config-property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
          <config-property name="connectionString" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
          <config-property name="userName" value="system"/>
          <config-property name="password" value="any"/>
          <config-property name="minConnections" value="5"/>
          <config-property name="maxConnections" value="5"/>
          <config-property name="minReadConnections" value="1"/>
          <config-property name="maxReadConnections" value="1"/>
          <config-property name="usesExternalConnectionPooling" value="true"/>
          <config-property name="dataSourceName" value="jdbc/BPELSamplesDataSource"/>
          <config-property name="usesExternalTransactionController" value="true"/>
          <config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.Oracle9Platform"/>
          <config-property name="usesNativeSequencing" value="true"/>
          <config-property name="sequencePreallocationSize" value="50"/>
          <config-property name="tableQualifier" value=""/>
     </connector-factory>
Notice the following key properties are set:
          <config-property name="usesExternalConnectionPooling" value="true"/>
          <config-property name="dataSourceName" value="jdbc/BPELSamplesDataSource"/>
          <config-property name="usesExternalTransactionController" value="true"/>
Issues:
This works only for "Merge" operation. "Insert" operation does not.
When you run this and chose a new title, the first insert is rolled back correctly
but then the instance does not appear in the bpel console. Likely because the dehydration/auditing is also rolled back.
Looking for it resulted in:
<2005-05-25 15:16:24,518> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
ogError> Error while invoking bean "finder": Instance not found in datasource.
The process domain was unable to fetch the instance with key "17da72ea26ff041b:d
09ad3:10410ffa8e2:-7fe6" from the datasource.
Please check that the instance key "17da72ea26ff041b:d09ad3:10410ffa8e2:-7fe6" r
efers to a valid instance that has been started and not removed from the process
domain.
To verify:
run polsql @122.DBAdapter/sql/setup.sql first
then run polslq and
select title from movies;
The title you inserted should not appear if the first insert was rolled back.
Thanks
Steve

Similar Messages

  • When I am connected to my home wifi, it says I am connected but the 4G icon doesn't go away.  How can I make that go away when I am connected?

    When I am connected to my home wifi, it says I am connected but the 4G icon doesn't go away.  How can I make that go away when I am connected?

    When I'm at my home, and on my Wifi, my 4G icon on my LG G2 is still present. No big deal. If the bits can flow via WiFi, that's what they'll do.
    You might try (if you really MUST shut off the cellular radio):
    Settings, Network Connections and More networks. Select Mobile Networks and uncheck Mobile data and data roaming.
    Not sure if that will work - but give it a try.

  • How can I make it so that when Safari opens it takes me to the homepage?

    Say I am on youtube and I quit safari, when I reopen safari later, it goes to the page last open, in this case, youtube. How can I make it so that when Safari opens it always takes me to the homepage?

    Click on the red button (top left) to close the window before quitting.

  • I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    It's not clear why Apple made this change; speculation (which is not really allowed in these forums) is that it was done to protect the privacy of the caller.

  • How can I make the data persistent when using plist ?

    I have a UITableView table1. And when I touch any cell in the table a new UIViewController appears and it have two UITextField's name and description. After entering the data in both the text fields I used the save button to save them. In save method I wrote the code for the data to be stored in plist.
    -(void)save:(id)sender
    indexOfDataArray = temp;
    NSString *string1 = [[NSString alloc]init];
    NSString *string2 = [[NSString alloc]init];
    string1 = nameField.text;
    string2 = descriptionField.text;
    NSDictionary *myDict = [[NSDictionary alloc] initWithObjectsAndKeys:string2, string1, nil];
    [myArray addObject:myDict];
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"VideoData.plist"];
    [myArray writeToFile:path atomically:YES];
    UIAlertView *alertMesage = [[UIAlertView alloc] initWithTitle: @"Save Alert" message:@"The data entered is saved" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil] ;
    [alertMesage show];
    [alertMesage release];
    [myArray retain];
    But the problem is every time I restart my application the data in the plist is deleted. How can I retain the data in the plist name I specified ?

    I think yes, I am specifying only one file name to store in the path. I understood my where I am wrong.
    If I added data in plist for two items(item1 and item2). And again I need to add next two items(item3 and item4) . How can I make item3 and item 4 do not replace item1 and item2 ?
    Thank You.

  • How can i make Distiller autoname file ( when exprting from other application?)

    hello everyone,
    i have been searching for a solution for a long time please help me >
    we have more than 100.000 docuents saved as pic on our network at work by using ( Laser Fiche). I wanted to save all files by using acrobat distiller but when i try to print a file i was prompted to enter a file name! but i don't want to... i want the distiller create a file name automatially.
    in the preferencesd i unchecked ( ask for PDF .. ) but the problem is that all files saved were overwritten because distiller was imporing the file name from Laser Fich!
    how can I make distiller ( autoname files like 0001 0002 0003 and so on) ?
    forgot to tell you that i am using acrobat version 5 ( and windows xp + laser fiche at work )
    thanks in advance

    thanks Bill@VT -
    it didn't work
    I opened the properiteis of the distiller and uncheck the ( prompt for the PDF file name) so that the distiller can save files automatically . it did but by overwriting the files because the original files in the LASER FICHE have same names so the distiller saved one file only by overwriting ....that's why i want to make distiller to name files when saving them ( the distiller are imorting the files from Laser fiche only but i want it to autoname them )
    i also opened distiller properites and unchecked the ( ask to replace existing PDF filename ) the distiller was always asking me to replace file ! and I can't do it this way because I have more than 100.000 docuents!
    sorry , I know this is a very difficult question
    but I would very happy if you can help me
    hank you
    Al

  • How can I make IPhone 4 "invisible" when Bluetooth is switched on?

    How can I make my Iphone 4 invisible when Bluetooth is switched on???
    Peter

    If your phone is not jailbroken, they will not be able to connect to it. It will not be discoverable unless you go into the bluetooth settings page on the phone, which makes it discoverable. If people are attempting to connect to it, I'll lay odds that FAST&FURIOUS is correct in his guess that your phone is jailbroken. If that's the case, all bets are off. Jailbreaking compromises the security of your device as well as rendering the warranty void.

  • How can I make the "double hyphen" when hyphenatin usign the Brazilian Portuguese dictionary?

    The CS5 InDesign used to do what I am calling double hyphen. However since I started using the CS6 the Brazilian Portuguese dictionary does not recognize that function. In Portuguese when you have a word with as hyphen like diga-me it should be hyphenated like this:
    diga-
    -me
    The CS6 is hyphenating like this:
    diga
    -me
    I have tried to edit these kind of words in the dictionary but I couldn't include a hyphen in the editing box.
    Does anyone knows how can I fix this?
    Thank you

    just had same problem and find a solution, wich is very tricky:
    go to preferences / dictionary
    with the "Portuguese: Ortographic Agreement" selected, change "Hyphenation" from "Hunspell" to "Proximity":

  • How can I make a JButton enabled when the user types smthg in a JTextField?

    Hello,
    I have a JButton and a JTextField on a frame. The JButton is disabled, myButton.setEnabled(false).
    How can I enable the button when the user types something in the text field? Just typing, not pressing enter.
    Thank you

    There isn't one, actually. What you need is a DocumentListener and you have to associate it with the document object associated with the field i.e.
    field2.getDocument().addDocumentListener() (new DocumentListener() {
    });

  • How can I make DAQ VIs visible when using NI-DAQ 4.9 with LabVIEW 6.0?

    My operational system is Windows 98, I am using a AT-DSP2200 card and is configured. I have installed a NI-DAQ 4.9 (the last for this card) and I use Labview 6.0, but I can not find the DAQ VIs on the functions palette. How can I solve this?

    Hello;
    That version of the driver is too old to work with Labview 6i. The oldest version of NI-DAQ that one can combine with Labview 6i is version 6.1.
    You will need either to use another version of Labview, or to investigate a replacement hardware that you can use with newer versions of NI-DAQ.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • How can I change the actions taken when I insert an SD card to my iMac?

    When I insert an SD card in my iMac it copies all the photos in a directory and deletes them from SD card.
    How can I change that? I just want to view my pics and then be asked if copied or not.
    Thanks in advance.

    You have the option in iPhoto to delete or keep the photos on the SD card or Camera when the photos are finished importing into iPhoto.
    To change what happens when you plug in an SD card or Camera you will need to open Image Capture in your Applications Folder.
    In Image Capture:
    1 select and highlight the SD card in the list of Devices
    2 click on the pointers in blue at the bottom for Connecting this camera/card/device
    3  change the action for to any one of the other options there, No Application (if for example you want to open it with Finder) or to Preview (if for example you want Preview to open) the SD card.

  • How can I make the background inactive when I show a popup in Windows phone 8.1..?

    I have created a popup in Windows phone 8.1. But the user can click buttons in the background. Can I disable this feature of popup...ie. I want the background to be unresponsive when popup is shown.
        How to achieve this....? 

    There are a couple ways to do this:
    If you set popup.IsLightDismissed = true, when the user taps the background, the background will be unresponsive when the user taps the background. HOWEVER, tapping the background will cause the popup to disappear immediately.
    When you open your popup, you can set Window.Current.Content.IsHitTestVisible = false, that should make the background untappable. However, you'll need to set .IsHitTestVisible back to true once the popup is closed, otherwise your app will be unresponsive
    until the user closes and restarts it. You can subscribe to the popup.Closed event to tell when the popup is closed.
    Ryken Productions

  • How can I make the links work when the site is published.

    I am a new iWeb user and have built the website www.realmoroccotours.com and am having a few problems that I hope someone can help me with.
    First - in Iweb everything works fine but when it is published the links in the top and bottom menu do not work. If I clic on the link before the page is fully loaded it odes work. My host gave me the following information but I have no idea what it means or how to fix it. I have rebuilt the whole site but still the same thing happens.
    +> One of your javascript files that you have installed in the header of the main+
    +> page is blocking the screen with transparent image preventing links from+
    +> clicking. Please remove conflicting javascript and reload that page again.+
    Secondly, the site loads very slowly - although not all the time. Any suggestions on how to make it faster loading would be appreciated.

    All it means is that the image is blocking the navigation menu/overlapping - all you need to do is move it out of the way and the menu should work. Do a view all in iWeb and you can then see what is overlapping and what you need to move.
    You could also build your own nav menu if you like so that your site will be found more easily - javascript, which the iWeb menu is, is not always found that easily. You don't need to re-build the whole site - just the nav menu.
    If you want to speed up your site, then you could try using Web Crusher or iWeb Maestro to speed it up - you need to do this post publishing though, so publish to a local folder and then run it through either of these to get rid of the bloated code that iWeb creates and then upload your site.

  • DEBUG - how can I put a "break-point" when a variable have a certain value

    Hi
    I need help...
    Do you know some kind os instruction or tools to see and stop in debug a program when a variable have a specified value ?
    For example:
    At debug I want that a program "stop" when likp-vbeln = 70000123000.
    Now for do this, I change the code and insert a IF( ), and i put a breakpoint. But i need a way without need change code.
    Thanks

    Hi Ricardo,
    Use Watch point for this puppose.
    Watchpoints allow you the option of monitoring the content of individual variables.
    The Debugger stops as soon as the value of the monitored variable arrives.
    In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.
    Creating a Watchpoint
    In the toolbar of the New Debugger, you will find the pushbutton Create Watchpoint . It brings you to the dialog box Create Watchpoint.
    Using this function, you can enter the variable to be monitored.
    All possible ABAP data structures are allowed here.
    Hope this will help.
    Regards,
    Nitin.

  • How can I make Quicktime stop opening when I click a streaming media link?

    I was very happily using Windows Media Player 9 for streaming video in Firefox, and it was working fabulously, until I installed Flip4Mac, and now when I click on a link within a web page to open a standalone player for steaming video (please see "Click here to open standalone player" link below web cam window on www.tappedintoelephants.com) it opens Quicktime instead of Windows Media Player. I would like it to go back to using WMP for the standalone player when I click that link. I tried unchecking the "steaming media" box in Quicktime MIME settings, I've uninstalled Flip4Mac, and reinstalled WMP, but still, when I click that link, it opens Quicktime and crashes the browser. Could anyone please tell me how I can tell Firefox to once again use WMP instead of Quicktime for the standalone player? As I said, unchecking the streaming media checkbox in QT MIME settings had no effect. Thank you very much. I appreciate your help!

    I think what you should try is Settings>General>Accessibility>Vision>Speak Auto-text>Off.

Maybe you are looking for

  • How to take music from one computer to the other

    ok so i need to take my music from my mom's computer and put it on mine, and i've tried putting it on a floppy or a cd, but every time i do it'll act like it's doin something and then it says it can't complete becuase some of the songs couldn't be fo

  • Error - Webutil

    I am trying to run the sample file WU_TEST_106.fmx under form 9i & 10g db. Though i configure all the steps which are given in previous threads for webutil. Still i am facing the problem.Though the form is open at run time when i am trying to click a

  • My ipod crashed or skips when playing certain songs

    Whenever I use itunes I can play all of my songs, however when I use my ipod nano 5th generation I am unable to play certain songs. When I try to play these songs my ipod either skips over the song or crashes. Both my ipod and itunes are up to date.

  • Can't open or upload files from finder now I've updated to Yosemite

    I updated to Yosemite over the weekend.  Since then some of my files can't be clicked on to be opened, or to be uploaded online (e.g. hotmail online, or to a commercial printers website).  I'm using dropbox to store most of my stuff on.  However, som

  • Problem in creating launcher

    Hi, I am unable to create a workflow lanuncher. The launcher is not showing any events and while creating a new entry I am getting "Could not add configuration entry" error popup.Has anyone faced this issue before? Any pointers/help would be highly a