When do I close a XAConnection

          Hi:
          I am using XADataSource and XAConnection to manage a single
          transaction across multiple session beans. So my code looks sth
          like:
          UserTransaction u = (UserTransaction) ctx.lookup(...);
          try {
          u.begin();
          beanA.method();
          beanB.method();
          u.commit();
          catch () {
          u.rollback();
          Inside the SessionBeanA and SessionBeanB, database connection
          is opened separately via sth like this:
          XAConnection connection = some_XADataSource.getXAConnection();
          Everything works great here and the commit/rollback is taken
          care of by the UserTransaction so I need not worry about that
          inside each "connection". In fact, Weblogic document specifically
          says user MUST NOT call those two methods or else exception is
          thrown.
          the question is: when and how to I close the connection. Do I
          1:) treat it just like commit/rollback so that Transaction
          manager will automatially close it once all connections
          participating a transaction complete.
          or
          2:) Close it explicitly. But how do I know when to close it.
          I can't close the connection before the transaction manager
          commit/rollback my changes. On the other hand, I dont know
          when that is going to happen.
          Thanks.
          Lee
          

Most apps don't remain active when you go back to the home screen, but you can close apps completely (including the 'recently used' ones) by : from the home screen (i.e. not with an app that you want to close being 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.

Similar Messages

  • When i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too

    when i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too

    If you are running v10.7 Lion, disable Resume >  How To Disable Lion's 'Resume' Feature - MacRumors.com

  • When I close Firefox and then come back to it layer a box comes up that says it's already running. It ays to close Firefox first but when I hit close nothing happens and the box comes up again. I have to shut down my computer and restart to get into Firef

    When I close Firefox and then come back to it later a box comes up that says it's already running. It says to close Firefox first but when I hit close nothing happens and the box comes up again. I have to shut down my computer and restart to get into Firefox again. If I can't get this fixed I will start using someone else. Someone told me a way to close Firefox but I forgot what they said.
    == This happened ==
    Every time Firefox opened
    == a couple of months ago

    Hello Brian.
    You don't need to restart your computer to open Firefox again: you just need to close it manually through your application manager (CTRL+SHIFT+ESC in Processes tab). Anyway, hopefully this support article is what you need:
    http://support.mozilla.com/en-US/kb/Firefox+hangs
    What's probably happening is that you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • How can I disable e-mail and text messages when I'm close to or over my data quota ?

    How can I disable e-mail and text messages when I'm close to or over my data quota ?
    Is this possible? I don't see any options?
    All I see is this:
      Receive confirmations of many account transactions via Email and/or free Text Alerts delivered right to your cell phone. You can receive these confirmations for  
       transactions done online, over the phone or from your handset. Account management Text Alerts do not count against any Messaging allowances.
          Your bill is ready for review.
         Payment Confirmations: Your payment has been  received    Your credit/adjustment     has been applied.1
         Account Activity Confirmations     Plan changes     Feature changes1

    What phone?
    You would need to disable data on the phone itself.  You wouldn't do it online on your account.
    Note also that text messages do not count toward your data allowance.

  • Thanks For Your Support in advance i want to know that when I open a website that time view print option and when I click close button then page also new window page also close. I want to copy it how i can stop this print option?

    WHEN I OPEN A URL THAT TIME WITH PAGE OPEN SHOWS PRINT OPTION AND WHEN I CLICK CLOSE BUTTON OF PRINT OPTION THAT TIME NEW WINDOW BUTTON IS CLOSED. I WANT TO CLOSE ONLY PRINT OPTION. PLEASE HELP ME...............THANKS

    Many sites which offer specific "print formatted" pages do that: they assume that once you have finished with the print dialog you no longer want the page itself. So for your convenience they close it. Not so convenient for you, since you still want to view the page.
    I'm not aware of an easy solution for this. I can think of a couple different approaches.
    First, maybe there's an add-on to solve this? That would be easiest.
    Second, maybe there's a userscript to solve this?
    The Greasemonkey add-on runs userscripts which you can copy or download. Be careful to install only long-establish and trusted scripts. (''Is there a site that has this bad behavior that I can view without logging in? I will test one of my existing scripts to see whether it helps.'')
    Third, Firefox has an old system for restricting site permissions in a custom text file in your profile folder (named user.js). Editing this file is a bit advanced, and I haven't been able to test it, but the system works along these lines:
    <br>// Define a policy name for window.close permission
    // (assumes you don't have this pref already)
    user_pref("capability.policy.policynames", "nowindowclose");
    // Define policy: disable sites from using window.close
    // in their scripts
    user_pref("capability.policy.nowindowclose.Window.close", "noAccess");
    // List of sites subject to this policy
    user_pref("capability.policy.nowindowclose.sites", "firstbadsite.com secondbadsite.com");
    Again, I haven't tested that and recommend looking into add-ons first.

  • I went to use my ipod touch 8GB but it wasn't working, when i looked closer it was on just very very dim. The brightness is turned up all the way and the screen is practically black.. does anyone know how to fix it?

    I went to use my ipod touch 8GB but it wasn't working, when i looked closer it was on just very very dim. The brightness is turned up all the way and the screen is practically black.. does anyone know how to fix it?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings If yu can see the screen enough to do it)
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store since you have a hardware problem.
    Apple Retail Store - Genius Bar

  • How to catch data from Purchase Order form, when user click CLOSE menu?

    Hi,
    I need do my own biz process when user click CLOSE in the Data menu to close a purchase order.
    But I don't know how to get data from PO form which opened by user.
    Can anybody give me some suggestions? thanks.

    Clicking "Close" is menuUID 1286. (Check this by going to View->System Information, and then hovering your mouse over "Close" in the menu. The menuUID is displayed in the bottom left of the screen)
    So catch the menu event, when menuUID and pVal.BeforeAction = True.
    The slightly tricky thing here is that pVal for a menu event doesn't give you the form, but it will be the active form, so you can do this:
    Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
         If(pVal.BeforeAction And pVal.menuUID = "1286")
             SAPbouiCOM.Form oForm = SBO_Applcation.Forms.ActiveForm
             //Now you have the form, when the user has clicked close, so process the data
             //from the form as normal
         End If
    End Sub
    Syntax might be wrong, I typed it up from memory and have no error checker!
    Edited by: njmog1 on Feb 28, 2011 10:35 AM

  • In the 20.0.1 update, I noticed when you accidentally close your window your browsing it automatically closes your downloads. Can I bypass this?

    In the 20.0.1 update, I noticed when you accidentally close your window your browsing it automatically closes your downloads. Previous versions when you close your window and reopen Firefox your downloads are unaffected until your downloads are finished or you cancel it yourself. Is there a setting I can set that my downloads are unaffected when I close my window.

    You can set the browser.download.manager.quitBehavior pref to 2 on the about:config page.<br />
    That will make Firefox ask for confirmation if you want to cancel the download if you close Firefox.
    See:
    * http://kb.mozillazine.org/browser.download.manager.quitBehavior
    *http://kb.mozillazine.org/about:config

  • My mac book pro version 10.6.8 screen brightness doesn't increase its just black but can see icons when m 2 close to the screen..how can the problem be solved

    my mac book pro version 10.6.8 screen brightness doesn't increase its just black but can see icons when m 2 close to the screen..how can the problem be solved

    Try resetting the  SMC http://support.apple.com/kb/ht3964
    You can get an idea for repair from these site. Check locally for your area.
    https://www.techrestore.com/mac/
    http://www.dttservice.com/macbookprounibody.html
    http://www.myservice.com/macbookpro.html
    http://www.ifixit.com/Device/MacBook_Pro
    http://www.PowerbookMedic.com

  • I'm using aperture 3 and mobile me to set up galleries which I send to friends. My question. Will icloud allow me to do the same or will i lose this function when mobile me closes down in July.

    I'm using aperture 3/mobile me to set up photo galleries which I send to friends. My question. Will icloud allow me to do the same or will I lose this function when mobile me closes down in July. If this function isn't part of icloud does anybody have any suggestions how I can do this in future through aperature. Thank you 

    You will have to find a new hosting service for your galleries, when MM is gone; but you will still be able to create the galleries with Aperture. Export them to your disk and upload them via FTP to your new hosting service.
    See these support articles: Migrating from Mobile Me
    http://www.wilmut.webspace.virginmedia.com/notes/migrate/frommobileme3.html
    and this FAQ about Mobile Me and iCloud Transition http://support.apple.com/kb/HT4597

  • The "not enough storage" window wont close when i press close and my phone also wont reset because my lock button doesnt work. what do i do? just let the battery drain then turn it on?

    the "not enough storage" window wont close when i press close and it wont reset because my lock button is broken. what do i do?

    Battery does not appear to charge
    Important: iPod touch cannot be charged with a FireWire-based power source.
    Verify that the power source being used is working properly.
    If connecting to a computer's USB port, verify it is a high-powered USB 2.0 port. Note: The USB ports on most keyboards don't provide enough power, so if you're connecting iPod touch to a keyboard, make sure it has a high-powered USB 2.0 port.
    Verify the computer is turned on and not in sleep or standby mode. If iPod touch is connected to a computer that's not turned on or is in sleep or standby mode, the iPod touch battery may drain.
    Try another USB port.
    Try charging from a USB charger if available.
    If that does not help, try another USB cable if available.
    Learn more about charging the battery.
    The Home button isn't working
    Put the iPod Touch to sleep.
    Wait a couple of seconds.
    Press the Home button.
    iPod Touch should wake up.
    If iPod Touch does not wake up, then iPod Touch should be serviced.
    Resources for Service
    http://support.apple.com/kb/he57
    https://selfsolve.apple.com

  • The following message appears when I try to turn on the iPad..."Not enough storage..this iPad cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings." When I tap Close or Settings nothing happens

    The following message appears when I try to turn on the iPad..."Not enough storage..this iPad cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings." When I tap Close or Settings nothing happens

    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • My problem is after updating to Yosemite does my mail client any longer. I can not even open the mail, and when I "forced closes" mail and try to open it again to go in the entered settings running the colored wheels around and allows me only to forc

    My problem is after updating to Yosemite does my mail client any longer. I can not even open the mail, and when I "forced closes" mail and try to open it again to go in the entered settings running the colored wheels around and allows me only to forcing close again? does anyone have a solution to the above problem?

    You mean the default OS X mail app? Try reinstalling OS X Yosemite if that's the case.
    If you are referring to 3rd party mail applications, that's a compatibility issue. Some apps don't work in the new operating system. You have to wait until the developer updates the app, or you have to revert back to Mavericks to continue using it.

  • How to send "close" message to server when client directly close computer?

    hi~~
    I now have a 9 ppl multiplay game with Socket connection. The clients can sucessfully send a message to server whey they close the game down through pressing X button,but they cant send message when they directly close computer.
    I want to know how to make so available?
    thank

    Whenever we put our computer off directly(like power
    failure), there is no way to inform other computer
    about this mishap. Now it's responsibility of server
    to judge this scenario. In case of sockets, whenever
    we try to write or read from socket whose connection
    is broken, exception is thrown. No. TCP does not work like that.
    If you read from a socket and the other computer aborted the connection, then either the read will timeout (if a read timeout is set) or block forever.

  • Exit plug - Error when tyring to close application

    Hi,
    I get the following runtime error when trying to close my WD Application:
    -> Parameters of exit plugs and suspend plugs must be of type STRING or TIHTTPNV
    My outbound plug og type exit takes 1 parameter:
    CLOSE_WINDOW of type Boolean.
    My code for calling the exit plug:
    DATA: l_ref_main_window TYPE REF TO ig_main_window .
      data: l_close_window TYPE boolean.
      l_close_window = 'X'.
      l_ref_main_window =   wd_this->get_main_window_ctr( ).
      l_ref_main_window->fire_exit_plg( close_window = l_close_window ).
    Thanks,
    Morten

    Hi Morten,
    There are certain restrictions or certain conditions to be considered before using the CLOSE_WINDOW  parameter in the exit plug, you may find them here.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/1bc575ba064574e10000000a114a6b/frameset.htm
    Regards,
    Runal

Maybe you are looking for