How to catch global transaction timeout event

Hi all,
I need to find a way to catch global transaction timeout events. By default, there are only two transaction related events can be caught:
.SysTransactionHeuristicAbort
.SysTransactionHeuristicCommit
Is there a way to add transaction timeout to the list. Thanks in advance.

Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

Similar Messages

  • How to configure global transaction wthin Oracle AS JMS and Oracle JMS

    How to configure global transaction if I take a message from Oracle JMS(AQ) and send it to the Oracle JMS?

    Which version of OC4J are you working on?
    In OC4J 10.1.3.x, presume your OC4J JMS listens messages via MDB which uses a resource adapter as a message listener. The resouce adaper could be the generic JMS adapter deployed in OC4J as the default.
    Resource adapter configuration to support MDBs is included in the standard ra.xml file, which lists the message listener types that the resource adapter supports.
    The MDB developer or deployer configures the MDB in the ejb-jar.xml file, through a <message-driven> element.
    In addition to above, configuration in the ejb-jar.xml file specifies whether an MDB uses transactions.
    1) The <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Container, and the <trans-attribute> subelement of <container-transaction> (under the <assembly-descriptor> element) has a value of Required. In this circumstance, if there is an imported transaction, then message delivery and related work are performed within that transaction. If there is no imported transaction, OC4J creates a transaction, and message delivery and related work are performed within that transaction.
    2) The <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Bean. In this circumstance, the MDB manages the transaction. If a transaction is imported, OC4J will suspend it before the message delivery method call to the MDB, in order to avoid conflict.
    Message delivery is not transacted if the <transaction-type> subelement of <message-driven> in ejb-jar.xml has a value of Container, but the <trans-attribute> element has a value of NotSupported. If there is an imported transaction in this circumstance, OC4J will suspend the transaction before the message delivery method call to the MDB.
    Details could be found from OC4J Resource Adapter Guide.

  • Global Transaction Timeout

    Hi All-
    Lets say we have global transaction timeout set as 30 sec (transaction-manager.xml) and one of my database adapter is taking 10 mins to complete, is there any problem in that? DO we have to set any property on database adpater?
    The database adapter invoke, Is it a asynch or sync process?
    Regards,
    Sreejit

    Hi Shanmu,
    I am using release 10.1.3.3.0 and we are calling the database adapter to call the standard ERP api to import purchase order and it takes MAX time 10-15 minutes to complete the process.
    Major step in our bpel process:
    1. first activity is to receive the file polling, MAX 10 seconds.
    2. calls database adapter for logging purpose, creates one row in table, MAX time 10 seconds.
    3. Calls database adapter to validate and insert the 500 records, MAX time 10 seconds.
    4. Calls OA adapter to call the Oracle EBS R12 standard API to create Purchase order, MAX time 10-15 minutes.
    5. Calls database adapter to call the post update process, MAX time 5 minutes.
    6. deletes the file fileadapter, MAX time 2 sec
    7. Calls database adapter to update one row for logging purpose, MAX time 2 seconds.
    Current transaction timeout is set as 30 second in SOA_Oracle_Home\j2ee\home\config\transaction-manager.xml and 60 or somewhere 120 in SOA_Oracle_Home\j2ee\home\application-deployments\orabpel\ejb_ob_engine\orion-ejb-jar.xml
    Do you think that we need to increase the time out more than the time taking by the adapter No.4 and No. 5?
    And thanks for the information between 10g and 11g.
    Regards,
    Sreejit

  • How to catching Clear-Sort button event?

    Does any one know how to catch the event when user click the Clear-ALL-Sort button? I would like to do somthing in Java by catching this event.
    thanks in advance.
    John

    I'm not really sure what you mean.
    LIke, I want to use the three event listener functions like a global or static function for all of the buttons which I think I've done for the most part.
    However, I'm having an issue with the current state of the button. Like...
    1 - on
    2 - off
    3 - off
    4 - off
    1 - off
    2 - on
    3 - off
    4 - off
    1 - off
    2 - off
    3 - on
    4 - off
    1 - off
    2 - off
    3 - off
    4 - on
    Really redundant right? So I want to beable to pass something through the event listener functions somehow so I only have to right the listener section once instead of 4 times.
    Know what I mean? If I was in an external document class structure I could just re-create my own event listener class to pass aonther property/parameter. But I don't know what I can do within AS3 internally in the Flash movie to do this.
    Just seems likes there should be a relatively simple way to do this, but I'm not sure how many errors I'd have to wade through or if it's even possible.

  • How to Catch External device's Event

    hi frndz
    i connected Dental Web Camera in my PC.i want to capture his click event.can i capture its click event.
    or any other way to catch its generated event.
    actually i want to store picture(Taken from Camera) into database.
    can u help me to solve this problem or can u provide me any solution
    thanks in advance
    Edited by: ajju29 on Mar 20, 2009 2:40 AM

    IMO:
    If Your camera don't ofer any SDK, you should check OS API and next search how catch events in your OS.
    if you develop for windows, check msdn.microsoft.com
    this links i find in google, maybe can help you"
    http://www.velocityreviews.com/forums/t130113-swing-how-to-catch-all-events.html
    http://www.experts-exchange.com/Programming/Languages/Java/J2SE/Q_23643749.html *(you must pay)
    http://www.javareference.com/jrexamples/viewexample.jsp?id=9
    http://www.microdoc.com/download/EDFoop2000_EN.pdf
    and more,
    ask google.
    Edited by: Skowroniasty on Mar 20, 2009 10:52 AM

  • How to catch cell lost focuse event of matrix

    Dear all
    can you tell me how to catch the cell lost fouc event of matrix.
    i want to check the value is entered the that cell, which is not greter than the extising value..
    thanks in advance......

    Hi
    For that you can use either validate or lost focus event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' BubbleEvent sets the behavior of SAP Business One.
            ' False means that the application will not continue processing this event.
            ' Validate event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
              (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
            'Lost focus event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
             (pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
        End Sub
    Hope this helps
    Regards
    Arun

  • How to catch Find and add event of toolbar in UDO addon ?

    Hi experts ,
        please help me anyone How can i catch Find and add event of SAP  toolbar in my UDO addon ?
    thanks in advance
    Surajit

    Hi,
    Try This.....
    'In Menu Event
    If pVal.MenuUID = "1281" And pVal.BeforeAction = True Then   'Find
                      sbo_application.Messagebox("Find Mode")
    end if
    If pVal.MenuUID = "1282" And pVal.BeforeAction = True Then     'Add
                      sbo_application.Messagebox("Add Mode")
    end if
    Thanks
    Shafi

  • How to set global transactions for XA.

    Hello,
    I have configured 9i RAC active/active database into a active/passive.
    The users were not able to connect using XA drivers.
    I have run the xaview.sql script as sys in @O_H/rdbms/admin and granted select privs as below.
    grant select on v$xatrans$ to public;
    grant select on pending_trans$ to public;
    grant select on dba_2pc_pending to public;
    grant select on dba_pending_transactions to public;
    Still users are not able to connect to the databases using XA drivers.
    What is needed more to be set up on the database side?
    Can any one let me know the detailed method to set global transactions(that is what I was told needs to be set up) on the oracle database.
    Thanks
    SKH

    Further to give more info the error users are facing is
    Could not connect to 'oracle.jdbc.xa.client.OracleXADataSource'.

  • How to catch IE7 tab change event in Java Applet?

    My applet have some modeless dialogs, When I start my applet with modeless dialog in tab1, if I swith to tab2, the modeless dialog of tab1 remains open.
    So I want to catch the tab change event, and set modeless dialog invisible when tab changes.
    Who knows the solutions.... Thanks

    To get to the IE7 browser, you'll have to go through JNI if you're using Java to get to a C level interface. You'll have to write the code to interface to it also. IE7 does not have a Java interface, inface, MS has a vested interest in not supporting a Java interface. You'll have to look up the IE7 developers docs to see the OLE interface you'll have to hit.

  • How to catch a key down event in TextEdit UI element ?

    Is it possible for me to catch 'Enter' and 'Esc' key when I input something ?
    Best regads ,

    hi, Shishir ,
    I see the on key event in input field , yes , the TextEdit does not has any event . But how can I meet such requirement ?
    When the user click enter on TextEdit , I should do something , When the user click escape , I should do something ?
    Best regards ,

  • Change in Standard SAP menu : How to catch the transaction code!

    Hello,
    I have added a menu item 'More Help' to the standard SAP menu 'Help' which should navigate to URLs for the respective transactions. Suppose i am in transaction FB03 and click the 'More Help' menu, it should navigate to the URL mentioned in a table.
    My Problem is I have created a transaction for that menu item 'zhelp' which calls a program and when i am clicking the 'more help' tab , the original value of sy-tcode which should be FB03 is replaced with the new Transaction which is used for the menu item i.e. 'zhelp'. Because of this i am not able to retrieve my value from the table corresponding to the transaction FB03.
    Is there any other system field which stores the value of transaction FB03 aftter navigating to other transaction? How should i go ahead with this? Please help!!
    Edited by: Rojalin Priyadarshiny on Sep 10, 2009 3:45 PM

    Hi,
    I really dont know in how many standard transactions you have added the More Help option.
    If you hav added only in 2  to 3 transactions then you can think on using the below Logic.
    Say if u have added in  FB01, FB02 and FB03 transaction.
    Find one exit for each transaction, in the exit EXPORT TCODE ( EX: FB01 ) to memory.
    In your Ztransaction report IMPORT the TCODE from memory.
    Now u will get FB01 after inmport statement and u can make use of this.
    If the option is added in many transactions , you have to think again in using the above logic as it involves identification of many Exits.
    Regards,
    Sravan

  • How to catch "Move" and "Copy" Events

    I want certain functions to be called whenever a user moves an existing PageItem on a Page, or when he copied a PageItem onto a Page.
    Which event should I be listening for, and to which object should the listener be attached?
    TIA,
    mlavie

    Harbs - you there?
    I can;t find any help for this elsewhere on the web - would really apprciate a response.
    mlavie

  • How to catch a mapping failure event

    Hi All,
    Is there a way to catch  a mapping fauilure and take an appropriate action like sending a fault message to the sender system?
    Does the fault message feature serve the same purpose? Will a fault message be always triggered if there's a mapping failure?
    Thanks,
    Sandeep

    Hi Santhosh,
    Thank you so much for your answer. I've assigned you points as well
    Is it possible to write some custom code for managing this alert? An example:
    When a mapping failure occurs, I would like to make a web service call to the sender system.
    Ay thoughts?
    Thanks,
    Sandeep

  • How to catch the ApplicationStart event??

    how to catch the application start event??
    i want to do some actions (Java code) that will be run once when the application started
    this like ApplicationStart event in ASP.NET
    how ???

    Google for javax.servlet.ServletContextListener. You need to write a class that implements this interface and register it in web.xml.
    Please ask questions like this in the JDeveloper or OC4J forum since they are not related to JHeadstart.
    Steven Davelaar,
    JHeadstart Team.

  • Transaction Timeout behaviour

    I am doing some testing to reproduce a production scenario where we ended up with messages stuck in JMS queue in receive state ( weblogic 10.3.3)...
    The flow is as below:
    JMS Queue --> Transactional MDB with resource reference
    The MDB makes a callout to http service . No read time out configured for the http invocation
    Transaction Timeout : 10 minutes for the MDB
    I put a Thread.sleep in the target http service for 11 minutes
    Tested by placing a message in the queue. MDB picked the message and made http call. Message substate was receive-transaction. Queue had redelivery delay of 55 seconds and redelivery limit of -1.
    I would like to know what is the designed behaviour in this scenario when transaction timeout occurs at 10 minutes. ?
    The behaviour I observed,
    From JTA Monitoring ,At 602nd second, transaction was marked for rolled back, though the MDB code was executing [ I think this is the correct behaviuor]
    Message substate was receieve-transaction till end of 660th second, when it got redelivered. Redelivery count increased by 1. I was expecting message substate to change to delayed, but it didn't,. New substate after 660th second was also receive transaction. In JTA monitoring I could also see a new transaction spawning up.
    The whole purpose of my experiment was to reproduce the scenrio we are observing messages in 'receive' state when http service goes out. Any suggestion how i can get this, all I could get is receive transaction.
    Thanks In Advance.

    So if the delay is set to 11 minutes, but the message is trapped in a receive transaction that times out after 10 minutes, there will only be a 1 minute redelivery delay... Thanks Tom. This is eaxctly the behaviour I am observing. And if redelivery delay is less than transaction timeout period, message is redelivered instantaneously when the transaction timeout occurs.
    It seems you're looking into the final details of the "redelivery delay" feature's behavior? I am looking at how to trap the message in receive state. We are seeing messages stuck in receive state in production when http service goes out and it occurs randomly. My guess is since we have not configured http read time out, the socket timeout occurs at a time beyond transaction timeout and some of the complex underlying behaviours at transaction timeout event is the reason for this [ could even be a bug when dealing with this abnormal condition].
    A solution for this is to set out the http read time out less than transaction timeout. We have done this in prod now and since we cant reproduce the issue , we dont know whether it fixes the problem. We are now waiting to see if the issue reoccurs . The customer doesn't like this and wants us to reproduce the issue for confirmation.
    I am looking at the message substate transitions. I know for transactional weblogic MDB's and non UOO messages, the state transition will be :
    Visible --> receive --> receive transaction --> transaction committed or rolled back
    In this transition , it is possible for messge in receive transaction to revert back to receive status ?
    P.S. we have spent huge amount of time and effort with Oracle support with no real solutions. They want us to tell them the method to reproduce the issue.

Maybe you are looking for