File Transactions - Can I use JTA or JCA

Hi,
I am a novice to JTA or JCA.
My requiremnents are such. I have to read some information in an object and based on which I appnd this information into a particular file. There are about 50 files that I have to deal with.
Now, suppose an error occurs in either one of the files, I have to rollback all the file manupilations that I had done. How do I do this?
Is this kind of functionality possible with JTA? If not what else can I use?
Cheers,
--- Chandan !!!!!!!!

Hi,
For this to work with JTA, you need to get an XAResource implementation for each file. This instance is either programmed by you, or by a JCA vendor for file systems (not sure if there are any).
The idea would be to make the editing of the file actually work on a COPY of the file, created at opening time. If you do commit on the XAResource handle, then the copy replaces the original file. On rollback, you just delete the copy. However, you also need to have locks in order to handle concurrent edits.
Guy

Similar Messages

  • How can I use JTA in my business logic and execute process with PAPI?

    HI All,
    How can I use JTA in my business logic and execute process with PAPI?
    When my business logic has exception, the process will rollback.
    or the process has some exceptions, my business logic also will rollback.
    I don't know how to do it.
    Does anyone know how to do it?

    Thank you for your reply, Daniel.
    But I think I did not express my mind clearly.
    There is a scene that I have 2 Application Server.
    My business code is deployed in one Server.
    The BPM is deployed in another Server.
    I want to execute Task use PAPI.(ProcessServiceSession.runActivity)
    In my business code, I will do something before execute Task.
    I need my business logic and Task in same transaction.
    To ensure them "all-or-nothing" .
    As you say, if The transactions are managed by Oracle BPM.
    then can I retrieve OBPM transcaction in my business code?

  • After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    Numbers is a spreadsheet program and FileMaker is a database program, so you probably can't use Numbers to open them unless you had first exported them from FileMaker in a spreadsheet-compatible format.
    If you upgraded from 10.6 Snow Leopard or earlier and your old copy of FileMaker won't open anymore, it might be a PowerPC application that is not compatible with 10.7 and later. If that is the case, to work with your FileMaker files you should upgrade your copy of FileMaker to the latest version, which seems to be FileMaker 12.

  • The log file which can be used to track the HTML preview of HFR Reports

    Hi,
    Could you please let me know the log file which can be used to track the HTML preview of HFR Reports?
    Thanks,
    Aparna

    You could check the FinancialReporting0.log and FRLogging.log .You could refer the same in the
    " http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_troubleshooting_11121.pdf" page 47.

  • What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?

    What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?
    I writed to Panasonic Italy support about this question:
    "What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?"
    Panasonic writed me in a very poor manner and said me:
    "...riproduce formati: AVCHD (anche 3D), SD-Video, DivXHD, JPEG, MP3, AAC tramite USB e Slot SD/SDHC/SDXC card..."
    "...formato : AVCHD estensione file nella SD: .MTS..."
    I made a few videos edited with PremiereProCS5 and exported as H.264 Coding and .mp4 file extension, all side by side, with layout 1920x1080pixels that includes two stretched frames at 960x1080 pixels.
    This is the same image layout that uses the Panasonic 3D consumer camcorder "HDC-SDT750", that record AVCHD videos with file extension .MTS.
    I also tried to export another video as MPEG2 with .mpg file extension.
    But at the store the tests failed, and I cannot see anything!
    My questions are:
    1) What format can be used by PremiereProCS5 for exporting the Stereoscopic 3D videoclip and play them via USB port on Panasonic TVPlasma3D such "TX-P46VT20"?
    2) What codec should be used? H.264? H.264-bluray?
    3) What file extension should have the movie file? .mp4?
    Many Thanks!
    Horsepower0171.

    -I already read entirely those threads, but nothing about stereoscopic 3D AVCHD movies through USB port, on Panasonic TVPlasma3D.
    (Also, Sony said me that is not possible to play 3D videos on your 3DTV through USB port).
    I tried to made a H.264 videoclip, with .MP4 extension, at 960x1080p side-by-side layout, but nothing was displayed, and black screen.
    I think that just the AVCHD movies, with .MTS extension, that comes from Panasonic consumer camcorder "HDC-SDT750", can play the 3D videos via HDMI cable, not USB port.
    But not the exported videos from PremierePro via USB port.
    I seen this tutorial from David K Helmly:
    http://www.youtube.com/user/dhelmly#p/a/u/1/_YtF0c2bmkw
    Dave export the video from PremiereProCS5 as "MPEG2-bluray" format with "Match Source Attributes (HighQuality)" Preset, and build the Bluray Disc in EncoreCS5, with the footage as MPEG2 with .m2v file extension:
    1) Anyone tried to play correctly in 3D, those MPEG2-.m2v side-by-side files, in Panasonic3DTV, with BlurayDiscReader?
    2) Why MPEG2.m2v side-by-side?
    3) The official standard stereoscopic 3D format, is not the .MVC (MultiViewCoding) for Bluray3D Disc?
    I am confused!
    Help!
    Horsepower0171.

  • Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    You will need to setup a new Apple ID for your sister.  You have to have an Apple ID and iDevice connected and using that account to get an iCloud account.

  • What is the largest MMC and SD card that the Acer C710 can use, and what file formats can be used?

    What is the largest MMC and SD card that the Acer C710 can read from and write to when inserted into the built-in 2-in-1 card reader? What file formats can be used with aforementioned MMC and SD cards?i.e. FAT, FAT 32, exFAT, etc.

    Thank you for you help. I forgot to mention what is the highest class of SD card it can use at top speed, and are there any classes that will simply not work? An example answer would be, the highest speed that it can operate at clase 6, with class 8 being the highest class compatible; class 10 will not work. Also note, there are new cards faster than class 10. I have seen symbols like U1 and U3. I don't expect a discount computer to run an SD card faster than class 10, but it is important to know if U1 and U3 at least work.

  • What transactions can be used to receive a pallet of documents for retention purposes that is not an inventory item?

    What transactions can be used to receive a pallet of documents for retention purposes that is not an inventory item?

    Petr,
    Thank you for the question, I think it is easier to explain my current process which I hope you can translate into SAP EWM processes.
    I currently have a SKU description of THIRD PARTY STORAGE, this SKU is always a quantity of 1 for stock check purposes. This SKU can be many things but not inventory (in the sense of not a component or finished good). The pallet can be documents for retention, samples for QC, trial parts etc. This pallet can be received onto the WMS without a Purchase Order number, the SKU is set up to be able to be received 999999 times before a re-set is necessary. The SKU has a putaway algorythm for the high bay warehouse and is sub-zoned into an aisle.
    I hope this clarifies what I'm asking for in SAP.
    Regards
    Chris

  • I have a serial number for 2 on file.  Can I use this to activate version 5?

    I have a serial number for 2 on file.  Can I use this to activate version 5?

    No, Lightroom 2 serial numbers cannot be used in Lightroom 5.
    You can purchase Lightroom 5 at the upgrade price of 79 US Dollars, and you will get a valid LR 5 serial number (you will need the LR 2 serial number and the new LR 5 serial number to activate the upgrade).

  • How can I use JTA in Toplink???

    Toplink transaction is setted by auto commit.
    I'm using Toplink Workbench for relational object mappings...
    I want to use JTA to controll transaction, which file should I configure in toplink Workbench?

    Please go through the following URLs
    1)http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/sescfg009.htm#BCGJCJCA
    2)http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/uowadv013.htm#CACHFICI

  • Sender file adapter - Can I use *.xml for the file name

    Hi Gurus,
    I have some interfaces where I need to pick the file from a directory. The name of the file will have Data<i>time stamp</i> as the naming convention. Can I use *.xml to pick up my files from this directory?
    The help.sap.com documentation says that we can use this naming convention.
    <b>
    &#9679;      File Name
    Specify the name of the file that you want to process. The name can contain placeholders (*, ? (placeholders for exactly one character)) so that you can select a list of files for processing.
    </b>
    I tried using *.xml for my file name in the communication channel, XI is not picking up this file.
    Please let me know if you have the solution.
    Thanks
    Kalyan

    Murthy,
    Thanks for the reply.
    I am using GuildFTP tool as my FTP server. In this tool, all the permissions were given for the file to pick up.
    The status of the file is good.
    Where in the file adapter configuration I have to select 'Read-only'?
    The file adapter is working perfect with the exact name of the file.
    Thanks
    Kalyan

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • RF transactions, can I use tabl econtrol

    Hi! All,
    I am developing custom RF transactions for character based SAP Console.
    Can I use table control or should I stick to step loop and write the code for scrolling. I beleive step loops are obsolete but I dont know if I can use table controls in character based screens.
    Thank You,
    -Priyanka

    I think you need to use STEP LOOPs only.
    Regards,
    Naimesh Patel

  • FILE transaction - How to use.

    Hi,
    In the FILE transaction I need to set up a logical file name and then link this to a physical file. How do i access the physical file folder. For example there is a physical file /usr/sap/trans/data/textfile.... how do I display this?
    regards,
    Warren.

    Hi,
    Go to Transaction FILE
    Step1)Create the Synatx group
       For example
        UNIX
    Step2) Assign Logical file to Laogicl path
    Step3)
       Assgin the Physical Path ( usr/sap/trans/data/textfile ) to Logical path ( ZTEST_FILEPATH)
    Thanks
    PK

  • Can I use JTA transactions in a EJB that calls a webservice

    Hi,
    I created a EJB Client that calls two web services with JTA transactions. I would like to undo the first web services when the second one fails. Is this possible at all? If yes, is JTA the right way to do this?
    Thank you
    Julia

    You may be able to but it all depends on the RAM and the system. Some work, Some Don't.
    But if you haven't already bought the RAM just buy what is right for the system.
    Even if the faster RAM works it will not run at the faster speed. It would be Clocked down to the speed of the system it is installed in.

Maybe you are looking for

  • How to download the PAR FILE

    Hi, I am very new to Portal.  I have do some corrections to COM.SAPPORTAL.RUNTIME.LOGON.PAR.    I have NWDK and I have portal access but I dont have have server system access.  How to down load this file from system administration and support place.

  • Can't delete ftp content

    I was trying to delete all my files from the ftp server, but when I drag my files to trash, it appears a message says it can't delete, with error code -61. I tried making an empty folder and upload to it in order to delete its content but also failed

  • A small Java Problem for java Experts

    Hi Guys... I have a small problem with my program... Tha program I am using consist of several frames where one invokes the other in row. These are the classes I am using: the FIRST class://THIS CLASS IS NOT COMPLETE import java.io.*; import java.awt

  • How to fix the delay problem while recording? Can't set the Latency to 0. Win7, CS6,Realtek,C03u Mic

    I am using Win7, with CS6, Realtek soundcard and Samson C03U microphone. There is a problem that's really been bothering me. When I record songs the recorded audio always comes 0.1 seconds after where it's supposed to be and I need to fix the problem

  • Serious problem with nokia music manager v 1.0 (no...

    i have nokia pc suite v 6.81.13.0 and the music manager was working normally and suddenly the music manager stopped conversing the music tracks, when I try to add any track to the phone and choose to convert it before the transfer ,it makes pending t