SP calls not rollback - Using JDBCTxDataSource

Hi,
We are using a JDBCTXdatasource and we are calling stored procedure, One of them have transaction and the other ones don't.
When we get an error from a SP without transaction, the data that was insert in the table is not rolled back.
And when we get an error from the procedure that has a transaction, a rollback is issued but then there is a transaction left open on the connection.
Does anyone has some idea on what is going on ?
We are using WEblogic SP4 and the older weblogic driver (weblogic.jdbc.mssqlserver4.Driver) due to some other problem with the newer one.

Hi Wen-Hung,
To roll back a transaction by throwing an exception,
the exception should be of Runtime type, like
EJBException. Application exceptions like SQLException
don't rollback TX. So you either need to throw runtime
exception or catch application exception, call setRollbackOnly()
on bean's context and re-throw the exception.
Regards,
Slava Imeshev
"Wen-Hung Yeh" <[email protected]> wrote in message
news:3cd8ae44$[email protected]..
I implemented three methods to test transaction functionality in statelesssession bean. The methodA() execute an UPDATE sql command on database, the
methodB() excute an INSERT sql command on database, and the methodC() just
calls the methodA() and then calls the methodB().
>
A test client is wrote to call methodC(), and an sql exception"java.sql.SQLException: Unique constraint (informix.pk_id) violated" is
generated in methodB(). At this time, the UPDATE command in methodA() should
be rollback, but it does not.
>
The following are my environments:
AP Sevrer = WLS6.1 (download)
DB = Informix
JDBC Driver = com.informix.jdbc.IfxDriver
JDBCTxDataSource is set with JNDI_Name tx_datasource in config.xml
Datasource is lookup from tx_datasource in session bean's ejbCreate()method
The methodA(), methodB(), and methodC() are all declared as TX_REQUIREDvia the deploy descriptor to support transaction.
>
Can anyone help me to dig the bugs in the configuration or in the javacodes that cause the transaction rollback fail?
>
>

Similar Messages

  • How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activ

    How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP?  I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.

    The new serial number is to the right of your chosen download.

  • Changes to sales order item not reflected if Call Transaction is used

    I m updating another Sales Order item quantity and reason for rejection programmatically from another sales order.
    The code is working fine and the quantity does get changed as well as the reason for rejection flag get set (if required). But if I go to the change log from the menu in VA02 for the order item which has been changed. It does not record the changes.
    I have tried using both BDC call transaction method as well as BAPI_SALESORDER_CHANGE in neither case the change log for the order which has been changed reflects the programmatically made changes?
    What m I doing wrong. Here is the code.
    IF v_update_order_flg = 'X'.
          REFRESH t_bdcdata.
          CLEAR s_bdcdata.
          REFRESH t_messtab.
          PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
          PERFORM bdc_field  USING 'VBAK-VBELN' <wa_r_rtb_posnrs>-zrtbvbeln.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
       For Going to  specific Item Number
          LOOP AT t_schedule_lines.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POPO'.
            READ TABLE t_item_in WITH KEY itm_number = t_schedule_lines-itm_number.
            PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
            PERFORM bdc_field  USING 'RV45A-POSNR' t_schedule_lines-itm_number.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POSI'.
            PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
            v_ro_qty = t_schedule_lines-req_qty.
            CONDENSE v_ro_qty.
            PERFORM bdc_field  USING 'RV45A-KWMENG(01)' v_ro_qty.
            PERFORM bdc_field  USING 'VBAP-ABGRU(01)' t_item_in-reason_rej.
          ENDLOOP.
          PERFORM bdc_field  USING 'BDC_OKCODE' '=SICH'.
          v_call_transaction_flg = 'X'.
          EXPORT v_call_transaction_flg TO MEMORY ID 'call_transaction'.
          CALL TRANSACTION 'VA02'
                       USING t_bdcdata
                       UPDATE 'S'
                       MODE   'N'
                       MESSAGES INTO t_messtab.
          v_call_transaction_flg = space.
          FREE MEMORY ID 'call_transaction'.

    Hi Srikrisna,
    This is a typical problem with BDC for updating QUANTITY and CURRENCY fields.
    You need to create a character variable of the same length as your quantity field. Move your quantity value to the newly created Character variable.
    Now use this new char variable in the BDC.
    This correction should solve your problem.
    NOTE: BDC RECOGNIZES CHARACTER FIELDS ONLY.
    Regards,
    Prakash Pandey

  • My iphone froze last nite and i was unable to exit the app i was on, it then switched the screen off as if it was not in use, now i am unable to open my iphone or switch it off, calls are still comin thro as phone is vibrating but im unable to answer

    my iphone froze last nite and i was unable to exit the app i was on, it then switched the screen off as if it was not in use, now i am unable to open my iphone or switch it off, calls are still comin thro as phone is vibrating but im unable to answer as cant activate the screen?????
    pls help

    See Here for  >  Frozen or unresponsive iPhone
    Try this First...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    http://support.apple.com/kb/ht1430
    More Info here...
    https://discussions.apple.com/message/19521062

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

  • At the time of call when i use speaker my sound is not visible to the prsn i call

    at the time of call when i use speaker my sound is not visible to the prsn i call

    Hello smarty007,
    Thanks for the question, and welcome to Apple Support Communities.
    From your description, it sounds like you are having issues with others hearing you while using speakerphone. For these symptoms, the following article provides the most relevant information. On the iPhone 4, it is commonly due to a third-party case blocking the top microphone:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Additionally, you can check out these articles:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Thanks,
    Matt M.

  • My brand new iPhone 6 Plus showing call time 2 hrs 41 mins when I did not even use the phone yet! Did I just purchased a used phone?

    Hi,
    Can anyone advise why my brand new iPhone 6 Plus showing Lifetime 2 hrs 41 mins under Settings/Call Time? I did not even use the phone to make call yet!
    Thank you.
    Regards,
    SC.

    Hi
    I meant when they test a percentage of devices as part of quality control - to make sure that a particular batch of phones is defect free and market ready
    The Call time is apparently the total time one spends talking on the phone between total resets and wipes
    http://forums.macrumors.com/showthread.php?t=1378469

  • Applet start() not called in multithreaded use, when using JAVA1.5

    Hi ALL,
    I am facing problem such that,
    applet start() is not getting called in multithreaded use, when I am using JAVA1.5 for jdk(<=1.4)versions.
    If , I give explicit call to applet.start() inside applet.init() , the applet is loaded, else it hangs.
    code snippet.
    init()
    //Created thread
    thr = new inputthread();
    //some other tasks
    start()
    boolean x= true;
    generate()
    {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    And it's the same behaviour in JRE 1.5 update 8 as well.

  • How can i share contact from recent call screen?  Used to go to right side of number and it would pull up your options, but share contact is not there anymore

    how can I share contact from the recent call screen?  Used to be able to touch right side of number and have that option.  It is no longer there.

    Touch the cirle i and then scroll down to share contacts.  I just tested this out myself.

  • Documentation says not to use Commits inside the FM in the actions.. what about BAPI Commits?

    I see in the customization documentation that we should not be using Commit statements in the FMs inside the Actions.. what about when we're calling BAPIs and they require a BAPI commit call?
    thanks,
    Robert

    Hi Robert,
    For BAPIs you need to set the commit level in the action definition as for function modules. SAP help portal provides following information about BAPIs and COMMIT WORK:
    "The BAPI transaction model must afford the user explicit transaction control. Therefore, if several BAPIs are called together, the caller can decide him/herself when to execute a COMMIT WORK (or, as the case may be, a ROLLBACK WORK). This means that BAPIs themselves cannot (generally) execute a COMMIT WORK command."
    I hope this infomration can help
    Best wishes
    Christoph

  • This iphone can not be used because the required software is not installed. Run the itunes installer to remove itunes, then install the 64bit version of itunes

    This iphone can not be used because the required software is not installed. Run the itunes installer to remove itunes, then install the 64bit version of itunes
    I keep getting the above error everytime I plug in my iphone.
    I am not daft, I do have the 64bit version of iTunes installed already. When I installed itunes 10.5 and more recently 10.5.1 I got an error message that rolls back a section of the installation (The updater I think) before finishing off installing iTunes.
    After the installation iTunes will work normally apart from when I try to connect a device. At which point I get the title error message and I can not sync my phone.
    It's probably down to Itunes not installing properly however no matter what I try I can not sort the problem out. I've tried uninstalling all apple programmes followed by a registry clean, then reinstall. I've tried the same again but in a specific order. I've tried repairing iTunes, repairing the updater etc etc. Nothing seems to work. I'm out of ideas.
    Has anybody had this problem? Please can somebody tell me how to fix it!
    Getting an iPad this Christmas and if I can't sync that up to my PC I may just have to go over to ANDROID!!!

    Is there a way to install this on its own?
    Yeah, let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunes64Setup.exe installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunes64Setup.exe, and select "Extract to iTunes64Setup". WinRAR will expand the contents of the file into a folder called "iTunes64Setup".
    Go into the folder and doubleclick the AppleMobileDeviceSupport64.msi to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport64.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, does an iTunes install go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • My iPad is receiving phone calls, not FaceTime calls, that my iPhone under the same iCloud account is receiving, how do I stop this?

    I have an older iPad that we use at my office for Pandora. My iPhone is connected to the same iCloud account as my iPhone is & once in a while my iPad will receive a phone call, not a FaceTime call, from one of my contacts that's trying to call me. It will say the contact's name up at the top like usual, it plays my iPhone ringtone, says "Slide to Answer" but also beneath that it says "from my iPhone." I still receive the phone call on my iPhone but I also receive it on my iPad & I'd obviously like it to stop. Can anybody help me out?

    You can do this on the phone and the iPad. Settings>FaceTime>iPhone Cellular Calls>Off.

  • The loading bar at the bottom of my browser has disappeared and I want to reinstall or reactivate it. How do I do this please and what is this bar called? I use the lastest version of Firefox 3.6.3 and Windows XP.

    The loading bar at the bottom of my Firefox browser has suddenly disappeared and I want to reinstall or reactivate it. How do I do this please and what is this bar called? I use the latest version of Firefox 3.6.3 and Windows XP. I have many add ons and I usually automatically install the recommended updates. This problem has never happened before and switching my browser on and off again does not solve the issue.
    == This happened ==
    Every time Firefox opened
    == I am not sure why this suddenly happened. I think it may have been after my usual updates but I am not sure if that has anything to do with it at all.

    Loading Bar? Maybe the URL/address bar where you type sites you want to go to (like www.google.com)? See Navigation Bar below. You may also need to see the first item "Can't see the Menu Bar".
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(Linux & OSX see: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
    <u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    You can un-install the Mozilla ActiveX control as Firefox no longer uses it and hasn't since, as I recall, version 2. See: [[ActiveX]]
    To remove Tools > Add-ons > Extensions, click on the item, click Uninstall, click Restart Firefox in the Extensions window.
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10''')
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • The TV show could not be used because the original file could not be found

    "The TV show “Blah-blah ep.23” could not be used because the original file could not be found. Would you like to locate it?"
    I know this problem is listed (and unanswered) from quite a few users in the forums for song files, but I haven’t found any that mention TV shows. To add to the heap, and help emphasize to iTunes that this is a major bug in need of fixing, here is my version of this problem.
    I have a variety of season passes to TV shows that normally download on almost a daily basis (The Daily Show with Jon Stewart, for example). About once every four or five downloads iTunes decides to silently delete a file. No warning given, no chance to stop it, just gone. ITunes downloads the file (clearly seen in the process in the Downloads part of the Store menu) and then lists the file under its correct menu in the TV Shows Library section (with the correct amount of MB listed for the file). I usually watch the episode right after I download it (with no problems), but of course I have left episodes unwatched when I shut iTunes down.
    On the next startup of iTunes, I go in to watch an old episode again or click on an unwatched episode, but it isn’t there anymore and the old “would you like to locate it?” message pops up. After being through this at least a dozen times in the last year, I know there is no point in looking for the file because it’s gone. The only choice is to go into iTunes support and ask them to reset the download, which they’ve always done without question, and then I have to download the file all over again. This is a huge hassle and all the more frustrating because it happens so irregularly.
    I’ve tried to find answers in these discussion forums, but have been unable to see any reasonable solution and wish to add to the voices of annoyed paying customers in the hope something will be done. If anyone is interested, the bizarre and time consuming workaround I’ve had to employ is:
    1. As soon as any of my TV shows are downloaded, I stop whatever I’m doing to go grab the file out of iTunes’ folder and move it to a location where iTunes can’t get its grubby little silent deleting hands on it.
    2. On the next shutdown-startup cycle, I can then go back and move the file back into its correct location in the iTunes TV Shows subfolders and I’ll never have a problem again with THAT particular file being deleted.
    Of course, the problem with this solution is that it’s painfully annoying to have to do it every time. I get lazy, iTunes seems to get its evil deleting ways under control and downloads all seem to work again. That is, until they don’t and the issue mysteriously returns with files being picked off anew and I have to return to these forums in the hope of finally finding out why this is happening. After more than a year and two or three iTunes version updates, it’s the problem that just won’t die.
    Anyone?

    Yes, only TV shows. I've never had a random silent delete of a song file. I also considered that Windows might be blocking the file to save space, but with no limitations set in the control panel that isn't the problem either. In fact, I've only had this problem with season pass downloads. It's never happened with a single download of a video or TV episode.
    Tonight, when I downloaded my Daily Show episode, I really kept tabs on what the heck iTunes is up to during the process. As many know, iTunes creates a folder called Downloads during the download process. Inside that folder, a video file gets downloaded as “download.m4v” along with another Qtime info file. When the download is complete, iTunes is supposed to use the info file to identify and tag the download.m4v file and then move it over into its correct artist subfolder with the correct file name.
    The problem, I discovered tonight in watching this process, is that iTunes (for mysterious reasons) does not do the relabel/move step with some of the downloads and leaves the files in situ as download.m4v in the download file. Additionally, in the iTunes software you can click on the file (correctly labeled and appearing, as I said in the first post, under the correct TV show banner) and watch it one time. However, after shutting down and restarting (and this is where the evil happens) iTunes will delete all files in the Download subfolder as part of a cleanup process. I suppose because it assumes that those files were correctly relabeled and copied into the corresponding TV show folders. So, there is the reason for the loss of downloaded video files (in my case).
    There appears to be no way of knowing, from within iTunes, when the file has been correctly copied over to its corresponding folder and when it hasn’t and remains in the Bermuda Download Folder of Death. Again, I have to go into that folder each time (before shutting iTunes down) to make sure the move took place. If it didn’t, then I have to make a copy of the download file and place it outside that folder.
    Finally, since this only happens occasionally, I’m wondering if it doesn’t have something to do with the way the info file is being tagged and labeled prior to being made available to download. However, if that were the case then the problem would be happening to lots of users and I would have expected a lot more complaints in the forums.
    By the way, I’m not big on fidgeting with any of iTunes folders or settings. It hasn’t been the case where the downloads were fine, I made some goofy change to the folder structure and then it doesn’t work. I haven’t fiddled with the settings for months, but all of the sudden this issue starts to appear and can just as easily disappear in the following week’s downloads.
    Still seeking answers or advice.
    Cheers.

  • Invoking a web service not created using oracle web service lib

    Hi All,
    I have a need to invoke my web service from oracle sql command. My web service not created using oracle web service library, but it is created using axis c++ libraries. Is it possible to do so,
    Thanks in advance,
    Regards,
    Monica

    In order to call out from the database process, is SQL (or PL/SQL) you need to generate some client code, that understand the details about the specific of the service you want to invoke and can produce the correct SOAP request. Once this proxy is uploaded in the Database, you can use it.
    There is a set of Database Web services samples that should help you get started. You can also take a look at the developer's guide - see Developing a Web Service Client in the Database.
    Hope it answers your question.
    --eric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Connecting a 23 inch monitor to comcast HD cable box

    Hi folks I just got a 23 inch monitor and I am interested to know if anyone has used the display to output video from a cable box. I have a female DVI to HDMI connector and the cable box has an HDMI port. Is there anything else I should worry about?

  • RoboHelp 9 and ActionScript?

    Hello. I am still quite green when it comes to the in's and out's of RoboHelp, so please pardon me if my inquiry is out-of-place in any way... I am working on a PC/Mac compatible AIRHelp project in RoboHelp 9, and was wondering if there are any issue

  • Facebook's new ad tracking policy for user profiles.

    Facebook's newest policy seems quite invasive. I have my Mozilla Firefox browser set to "Tell sites that I do not want to be tracked." Is this sufficient to stop this new policy from Facebook or do I have to go through their options of using the Digi

  • Why is upgrading from OSX 10.3.5 to 10.3.9 causing problems with my midiman

    When I upgraded to OSX 10.3.9 from 10.3.5 Logic and the hard drive are not finding my midisport 2x2. i have tried updating the driver but it mentions something about a missing classic folder from OSX 9.? and says to upgrade which I already have done.

  • Time Machine Backup History  Disappeared

    Hi, since I moved to a new place, Time Machine did only one partial backup (with errors) and since then, I'm also unable to make any backup to Time Capsule ("not enough space"). I can't see my old backups as well (only this partial). I checked a post