Creating a separate transaction in both JTA and nonJTA environment

I want to record some performance information for each call to my application and I want to write it to the database even if the transaction rolls back. The code needs to run both in a Websphere JTA context and a non-JTA context. The code I wrote works in non-JTA, but doesn't work in Websphere JTA context. How do I create an independent transaction when running in JTA context ? Would starting a new thread work, assuming that started a new JTA transaction ? Is there any other way that would have less overhead ?

One way would be to use non-JTA data source. I am not sure that WebSphere allows that in JTA case, but you still may be able to create it and put into jndi "by hand".
Alternatively you may try to use suspend / resume apis defined in jta spec.:
Transaction tobj = TransactionManager.suspend();
TransactionManager.resume(tobj);
For more please see
Java Transaction API (JTA)
3.2.3 Suspending and Resuming a Transaction

Similar Messages

  • How do  create a slide show with both video and photos in elements 12

    how do  create a slide show with both video and photos in elements 12

    Hi Brian
    You can batch process a set of prepared slides from Full Edit (see image) using:
    File >> Process Multiple Files
    In the PMF dialog you can choose filename, date, or description (caption)
    Make sure you choose a separate destination folder to your source folder so as tot to permanently overwrite your originals.
    Click image to view

  • Linking Access tables, creating a query with using both Access and Oracle

    Hello,
    I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
    the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
    I will appreciate if you guys help me. I look forward to hearing from you guys.
    Thanks,
    Pinar

    Pinar,
    to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
    There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    And there's also a dedicated Forum: Heterogeneous Connectivity

  • Is there a way to have transactions in both english and spanish

    What's needed to have transactions in both english and spanish.
    How do update all tables to have text also in spanish.
    All text documents to have spanish and english
    For Ex:
    How can you have all MM - SD transactions in both spanish and english
    Thanks
    Joe

    Hi,
    check which language is installed on your sap system using tcode SMLT
    if Spanish language is not installed then you need to import it.
    after that you need to specify the language whether EN - English or ES - Spanish during login.
    regards,
    kaushal

  • Creating tool will restart services both windows and web also restarting servers

    Creating tool will restart services on IIS and WINdowns after patching 
    I have a task to develop tool which check what services are down after patching 
    both (windows services) services.msc + IIS (web services) I need restart manually to take remote of MMC and go to that server 
    I need to take them out on single portal also I want to go desired log path, what windows ready made utility I can use except MMC
    --Himanshu Kulkarni

    Hello,
    The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
    Since your post is off-topic, I am moving it to the
    off topic forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Horizontal RSS feed- is it possible to create an RSS feed (showing both pictures and text), that scrolls from left to right rather than top to bottom?

    I am trying to create an RSS feed that will scroll from left to right rather than top to bottom as is standard in iWeb.  Ideally, I would like to show both images and text. I am actually using iWeb '09.  I am not opposed to writing html code if necessary.
    Thank you for your help!

    Probleme solved without having to change anything in the flash.
    The solution was to add a small part in the CSS in HTML
    html {
    overflow-x: hidden;
    overflow-y: auto;
    Solve probleme. All browser. VERY usefull to know !

  • Do I really have to create two separate Apps for Ipad1/2 and iPad3?

    Hi there DPS-Team
    I want to create an iPad-Magazine using the DPS. I read all the stuff about the alternate layouts and watched the videos on the channels. Now I ran into what I might call a problem for that I couln't find a solution yet. With my creative cloud membership I can create unlimited app using DPS...but I simply cannot create one app that supports iPad 1&2 + iPad 3 display resolution???
    Here in that article that I ran into where you suggest NOT to create an only iPad3 version: http://blogs.adobe.com/indesigndocs/2012/03/guidelines-for-creating-folios-for-ipad-3.html
    - So if I want one issue of a magazine to be iPad3 compatible then I have to create another app?
    - Or how this works? I have no expierience in how that looks in the App Store. But does Apple show both versions of the same App in the Store?
    - Does the user see both versions of my App in the App Store or only one depending on the version of the iPad he posseses?
    - Do I would have to create a diffrent icon for the SD as well as the HD-app so reader could choose in the App Store?
    Example: All my apps on my iPad2 of course have 1024x768 but when I recently syncronized the iPad3 with iTunes then I automatically get the update-Info over the App Store icon that I can update the new version of the App optimized for the Retina-Display.
    I mean that is a simple feature that nearly all apps are offering. Of course if I would not use the DPS I would have to again hire a developer and pay him for updating my already published app...but at least he could resubmit it supporting both resoutions.
    I hope you are getting my point here.  That is an important feature that should be build in no matter if I am a Single Edition customer or Business or Enterprise one. If you would do a catalog or something else for your client, he sees that all his apps on his iPad are updating according to his new device. But the catalog app that I did for him not. He would ask why can't you build it that way for me?  I would have to explain him: Sorry I cannot create both version in one app, you and your clients have to download two versions of your app if you want to have it look nice. That is not a very good selling argument for me.
    I really have to say that if there is no workaround, I am a bit disapointed because it does not make sense to create two seperate apps of the same app. I really would be happy to receive some helpfull advise on how to get both resolutions supported and when that is going to happen or even better...I misinterpreted the whole thing.
    And please: NO I don't want to upgrade to business or enterprise edition!
    Thank you for your words of advise, opinions and help.
    Regards
    Sushil

    Dear Bob,
    I will try that out.  But do you see any chance in the near future that when you create an article out of InDesign, that you can then add multiple layouts with different resolutions? Then I wouldhave one article that contains iPad SD&HD as well as V&H.
    So that would be a time saver. Create only one folio that already have the different resolutions covered. I only would have to work with one article inside folio-file for all the devices. Just a thought.
    Thank you for your quick response.

  • Creating album page with both video and pics

    recently switched from pc to mac. was using blogger and coppermine for online photo album but want to give this iweb thing a try... is there a way in iweb to create a page that has both video and pics? i tried uploading my album but it only transferred the pics.

    thanks for the feedback... let's say i decide to
    stick with the photo template and make thumbnail pics
    of my video to add in - can i put in a hyperlink
    (either using the title or the pic itself) to the
    video? basically, my concern is to keep all related
    material of an album together in one spot.
    Yes, you can do this. Just throw in the thumbnail pics of your video with the rest of your photos. Then put your real videos on separate movie pages. Then back to your photo page...you need to make the hyperlinks. So what you need to do is to create little rectangle shapes that fit over the video thumbnails, attach hyperlinks to the respective movie pages, then using the Inspector Graphics tab make the rectangle shapes 1% opacity so that the underlying thumbnail shows through. This is the overlay trick to get the hyperlink working.
    Good luck!

  • Create Separate Views for New,Edit and Display forms in Infopath

    Hi,
    I need to create a separate views for New, Edit and Display forms in infopath.
    For ex : I need a Submit Button on Display form and not in New/Edit forms.
    I tried, but i amnot able to get the changes.
    Regards, Shreyas R S

    I just validated my approach in a 2013 farm, this is precisely how it's done!
    Step 1) List > Display Form
    Step 2) Change the View within the Web Part Properties. In your screenshot it looks like you simply went to View Item on the single item, which is not the direction I gave =P.
    **Assuming you've already created the multiple views within InfoPath, this allows you to set them up as distinct defaults for New, Edit and Display, let's make that clear. If you are not even to the point of having separate views, that is just in InfoPath,
    Page Design tab, far left, New View button

  • Can i create a separate folder in time machine?

    Can i create a separate folder in time machine, and store applications on it? will time machine mess with the separate folder?

    If you mean a separate folder on your TM backup drive, then the answer is, "Yes." TM will not disturb it. However, if your plan is to store items on the TM backup drive then a preferable method is to partition the backup drive:
    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.
    Be sure you provide sufficient space in the TM partition. It should be at least twice the size of the drive it is backing up. If it isn't large enough for both TM and your storage needs, then you should get a bigger drive or another drive.

  • Not able to create Follow up transaction since it has been grayed out

    Hi Experts,
    We have a scenario where in we will create the Sales Transactions (OR) in ECC and then it will replicates to CRM.
    In CRM we wants to create Returns Order (RE) as a follow up Transaction to OR (which is replicated from ECC to CRM) .
    When I tried to create Returns Order (RE) in CRM as a follow up document to Sales Transaction (OR), the follow up Transaction CRM Returns (RE) has been grayed out. I mean it is in display mode only.
    And then I created Sales Transaction (OR) in CRM itself and then I tried to create follow up Returns Transaction (RE) I was able to create.
    But I am not able to Create Returns Order (RE) for the Sales Transactions (OR) that have been replicated from ECC to CRM.
    Can anybody help me in resolving this issue. Any help ful answer will be rewarded with points.
    Thanks in advance,
    -Frederick Johnson.

    Hi Fredrick,
    Please check, whether you have completed all the steps for Copying Control for Business Transactions in the following path in IMG:
    SPRO->Customer Relationship Management->Transactions->Basic Settings->Copying Control for Business Transactions:
    - Define Copying Control for Transaction Types
       In this step, you define the control for copying business transaction types.
       To do this, you enter a source tranaction type and a target transaction type, and define the corresponding conditions for this combination.
    - Define Copying Control for Item Categories
    In this step, you define the control for copying item categories.
    To do so, you enter a source item category and a target item category, and define the corresponding conditions.
    - Define Item Category Determination when Copying
    In this step, you define a specific item category determination which should be run during copying. The item category is used to find the target item category in the source transaction for the transaction type in the target transaction. This means that the transaction type for the source transaction is not relevant for the item category determination.
    If the system cannot find an entry for the copying transaction in this table, the item category is found in the target transaction using the normal item category determination.
    This might help you
    regards
    Srikantan

  • Creation of material  for  both service and delivery

    Hai all,
    we want to create a material for which both delivery and service is to be possible simultaneously.
    Is it possible  if yes let me know the material type for this.
    Thanks in advance,
    S.Jenibalet.

    Hi,
    You can create a new material type if you want to or use any of the exxisting material types that have qty and value updating set on.
    This is because you simply have to use an account assignment category on the PO etc. to post the costs to a GL upon receipt. leave this at space (for the same material) and you will; bring it into stock and update the stock account.
    So the main thing is the account assignment category and NOT the material type.
    Steve B

  • Creation of a Single button for both Update and Insert

    Hi,
    I want to create a button which performs both Insert and Update function. As of now i have 2 seperate buttons. Can I combine them in to one by writing a procedure which checks for the data in the database...If the record exists, then it should update the record, if not it should insert...Please guide me
    Regards,
    Pa

    Hi,
    If I am inserting in to the table a new record, how do I check for that column in the table...
    It should work this way..
    I have a list of users in a page, if I click on any user name, it will redirect me to another screen which will allow me to create a record for the selected user name. I want to check the selected user name in the table. If it is already existing then need to update, else insert.
    Regards,
    Pa

  • How to create a Separate Servlet application?

    Hi,
    Till now i have been servlet programs by placing the class files in the following directory path... ie ROOT/WEB-INF/CLASSES... and i access it like this
    http://localhost:8080/servlet/hello..
    My friend also works in my system... so i get confused which is hers n which is mine.
    I know we can create a separate folder inside webapps directory and access... so i cretaed a folder called servpgms in webapps directory.. under serpgms i created web-inf and lib folders.... then inside web-inf i created classes folder n i placed class file there.... but i have not written any web.xml file... so when i access my program like this ie..
    http://localhost:8080/servpgms/hello...
    i get HTTP 404 servlet not found..
    Can any one elaborate on writing the web.xml file and help me in creating a separate app?
    Thanks,
    Akshatha

    Hi
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>dbServlet</servlet-name>
    <servlet-class>com.mycompany.dbServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    <init-param>
    <param-name>dbdrivername</param-name>
    <param-value>qualified driverclass</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name> dbServlet </servlet-name>
    <url-pattern> /com/* </url-pattern>
    </servlet-mapping>
    </web-app>This is enough for testing a servlet. If you want to add more, read deployment descriptor file structure document and add elements that satisfy your needs.
    bye for now
    sat

  • RE: Cleaning and Compression Environment Repository

    Mark,
    I'm not sure what I did wrong the first time. I thought I
    covered all the bases, but just to be certain, I did the
    whole sequence again and now it works.
    Before, I did have problems restarting the environment,
    because the repository was locked. I had to kill a
    hanging process to solve the problem. Most likely
    it was this process that was interfering with my original
    attempts.
    With this script, you offered some very usefull infor-
    mation. Where did you get it? Like I said in my
    first posting, I couldn't find any documentation.
    The "help" function of "envedit" doesn't show any of
    the commands you used. No way, you stumbled
    on this by accident.
    Thanks,
    Pascal Rottier
    STP - MSS Support & Coordination Group
    Philip Morris Europe
    e-mail: [email protected]
    Phone: +49 (0)89-72472530
    +++++++++++++++++++++++++++++++++++
    Origin IT-services
    Desktop Business Solutions Rotterdam
    e-mail: [email protected]
    Phone: +31 (0)10-2428100
    +++++++++++++++++++++++++++++++++++
    /* Ever stop to think, and forget to start again? */
    -----Original Message-----
    From: [email protected]
    [SMTP:[email protected]]
    Sent: Wednesday, June 30, 1999 1:04 PM
    To: [email protected]
    Cc: [email protected]
    Subject: Re: Cleaning and Compression Environment Repository
    The script mentioned is the exact sequence of commands that should be
    used.
    Did you shutdown the environment first? You cannot clean an environment
    repository while the environment is online. I know that these commands
    work for both NT and Unix environment managers.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Mark,
    I'm not sure what I did wrong the first time. I thought I
    covered all the bases, but just to be certain, I did the
    whole sequence again and now it works.
    Before, I did have problems restarting the environment,
    because the repository was locked. I had to kill a
    hanging process to solve the problem. Most likely
    it was this process that was interfering with my original
    attempts.
    With this script, you offered some very usefull infor-
    mation. Where did you get it? Like I said in my
    first posting, I couldn't find any documentation.
    The "help" function of "envedit" doesn't show any of
    the commands you used. No way, you stumbled
    on this by accident.
    Thanks,
    Pascal Rottier
    STP - MSS Support & Coordination Group
    Philip Morris Europe
    e-mail: [email protected]
    Phone: +49 (0)89-72472530
    +++++++++++++++++++++++++++++++++++
    Origin IT-services
    Desktop Business Solutions Rotterdam
    e-mail: [email protected]
    Phone: +31 (0)10-2428100
    +++++++++++++++++++++++++++++++++++
    /* Ever stop to think, and forget to start again? */
    -----Original Message-----
    From: [email protected]
    [SMTP:[email protected]]
    Sent: Wednesday, June 30, 1999 1:04 PM
    To: [email protected]
    Cc: [email protected]
    Subject: Re: Cleaning and Compression Environment Repository
    The script mentioned is the exact sequence of commands that should be
    used.
    Did you shutdown the environment first? You cannot clean an environment
    repository while the environment is online. I know that these commands
    work for both NT and Unix environment managers.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for