Transaction with 2 DB

Hi:
          I am doing a container-transaction over 2 DB. I have two Stateless Session
          Bean, SB1 and SB2. At SB1 an SB2 I have defined two DataSource diferents in
          the method setSessionContext.
          In SB1 I have a method a1 that it calls to method a2 to SB1 and then method
          b1 to SB2. When b1 performs, it throws the following exception:
          java.sql.SQLException: Connection has already been created in this tx
          context for pool named pool1. Illegal attemp to create connection from
          anothed pool: pool2
          The pool1 is the connection to point the DataSource of SB1 and pool2 is the
          connection to point de DataSource of SB2.
          I don't know how doing a transaction over 2 DB. Do you help me??
          Thanks
          ML
          

It is only possible to do what you want with WLS v6.0
          Are you using v6 or v5.1?
          Regards,
          Peter.
          Got a Question? Ask BEA at http://askbea.bea.com
          The views expressed in this posting are solely those of the author, and BEA
          Systems, Inc. does not endorse any of these views.
          BEA Systems, Inc. is not responsible for the accuracy or completeness of the
          information provided
          and assumes no duty to correct, expand upon, delete or update any of the
          information contained in this posting.
          ML wrote:
          > Hi:
          >
          > I am doing a container-transaction over 2 DB. I have two Stateless Session
          > Bean, SB1 and SB2. At SB1 an SB2 I have defined two DataSource diferents in
          > the method setSessionContext.
          > In SB1 I have a method a1 that it calls to method a2 to SB1 and then method
          > b1 to SB2. When b1 performs, it throws the following exception:
          >
          > java.sql.SQLException: Connection has already been created in this tx
          > context for pool named pool1. Illegal attemp to create connection from
          > anothed pool: pool2
          >
          > The pool1 is the connection to point the DataSource of SB1 and pool2 is the
          > connection to point de DataSource of SB2.
          >
          > I don't know how doing a transaction over 2 DB. Do you help me??
          >
          > Thanks
          >
          > ML
          

Similar Messages

  • Create transaction with variant not working

    Hello!
    Here's my issue -- I have a program that, right now, is more of a shell than anything else.  It is to access the HR Logical Database PNPCE, and to help filter the data I pull back, I created a Selection View with a couple of additional fields.  I put the necessary values in these fields and saved it as a Variant.
    All I want to do is create a transaction to run my program and start it using my Variant to fill in these additional fields.  Using SE93, I can create a plain transaction with no problem.  However, if I click the "Start with variant" drop-down field, I get a response that says screen 1000 (my default Selection Screen) has no variants.
    At first we thought there was some client-side things needing configuration, but if I go create a quick-and-dirty program with a single Selection Screen value (no Selection View) and a Variant, SE93 sees the variant with no problems.  So I'm wondering if maybe it has something to do with the fact that I'm using a Selection View.  Unfortunately, I'm so new to ABAP, I'm completely stuck on how to proceed.
    Any suggestions?  Thank you so much!

    Saquib, thank you SO much!  You're right -- that worked.
    As a relative newbie to SAP R/3 and ABAP, I'm new to little quirks like this.  In other examples, the list (F4) does show the variants.  For some reason, this one didn't.  I entered it anyway, saved, and ran the transaction, and it popped up with the fields populated from the variant.
    Again, kudos and thank you so much.  Points duly awarded.

  • Posting of cross company transaction with different doc types

    Hi,
    The scenario is:-
    We have two companies X and Y.
    X makes a payment to Y with the following FI entries:-
    Company Code X
    Dr Vendor Y
    Cr Bank HDFC
    Company Code Y
    Dr Bank ICICI
    Cr Customer X
    Now this needs to be a cross company transaction where the doc type for CC X should be vendor Payment 'KZ' while the doc type for CC Y should be a customer reciept with doc type 'DZ'.
    Although I am able to map the accounts in cross company code config I am not able to split the transaction of different company codes with different document types.
    Is there any way we can do this in standard SAP?
    Thanks in advance,
    Nitish

    Hi
    As per your issue ...There are no possibilities to post   in sap with different document types.
    If you want you can post cross company code transactions with one document types
    Regards
    vamsi

  • You cannot reconcile a/p invoice transaction with A/P Down Payment request manually

    Dear Experts,
    One of my client has facing this problem while doing Reconciliation then he is getting the following error.
    "you cannot reconcile a/p invoice transaction with A/P Down Payment request manually"
    then we found a solution in SAP Forums and applied the same in Test Company Environment, then its working good and also attaching the scenario with screen shot.
    Please have a look into the attachment then tell us. Is it a good practice to proceed or is there any solution as simple as this.
    One more thing is my client has having more 20000 records to do reconciliation and he is looking for any alternative solution.
    So please tell us a Better solution.
    We are awaiting for your prompt response.....

    Hi,
    Please check SAP note:
    1340606 - Paid Down Payment Request cannot be reconciled
    internally.
    Thanks & Regards,
    Nagarajan

  • Skip first screen of BD87 using call transaction with BDC_DATA option

    hello all,
    i am using call transaction with BDC_DATA option and i want to skip first screen, so can anyone please tell me how can i skip first screen of BD87 and get second screen that is output screen?
    regards.

    Hi
    Build a BDCDATA with following code..
                                                          T     BD87                                                                               
    RBDMON00     1100     X                                                                               
    BDC_CURSOR     SX_DOCNU-LOW
                                                                BDC_OKCODE     =CRET
                                                                SX_DOCNU-LOW                                                                               
    SX_CRETI-LOW     00:00:00
                                                                SX_CRETI-HIGH     00:00:00
                                                                SX_UPDDA-LOW     05.02.2010
                                                                SX_UPDDA-HIGH     05.02.2010
                                                                SX_UPDTI-LOW     00:00:00
                                                                SX_UPDTI-HIGH     00:00:00
    RBDMON00     0100     X                                                                               
    BDC_OKCODE     =BACK
    RBDMON00     1100     X                                                                               
    BDC_OKCODE     /ECBAC
                                                                BDC_CURSOR     SX_DOCNU-LOW

  • No authorization for this transaction with movement type 601

    Dear All,
    This is chandra i am getting this error in delivery level " No authorization for this transaction with movement type 601. If give the authorization for SAP ALL its working fine. If give the authorization for SAP SD T.Codes i am getting this error. Plz help me.
    Thanks and regards
    Chandra

    Dear Chandra,
    Check with -
    T. Code: OMJJ
    Select Movement Type: 601 and Double-Click: "Allowed Transaction" (From Left-hand side) .
    Check whether the Transaction is allowed for Movement Type 601 or not
    Note: if Transaction is not listed (i.e. not allowed) and you wanna allow this Transaction with Movement type 601, then -
    Up-there, Tab: New Entry. Click on it.
    Maintain entry as:
    MovTy: 601
    TCode: As reqd.
    and Save.
    Best Regards,
    Amit

  • ME57 transaction with ALV scope of list

    hi all!
    i want to run ME57 transaction with ALV scope of list, but i'm facing a problem because if the list of requirements are bigger than 50 recors, the system says that  'Max. 50 requirements can be processed simultaneously' and I can not assign source of supply to all my list. I guess this will be customizable, because if I run it with A scope of list, there's no limit of processing.
    how can I change that value in order to be able to process all the requirements of my list in ALV view?
    thanks in advance.
    Fabian

    Hello Fabian ,
    This limit is maintained in class CL_REQUISITION_AGGREGATE_MM
    attribute N_EDIT_MAXIMUM initial value 50.
    If you want , this value can be changed using transaction code SE24. However , please take note that this change is considered a modificationto the SAP standard system and will no longer be supported.
    I hope this information has been helpful.
    Best Regards,
    Frank

  • How to execute a transaction with a different user from the logged user?

    Hello Experts!
    I'm trying to find out a solution about this scenario: our users need to release a Purchase Order (ME28) and/or a Service Entry Sheet (ML85) in SAP from a WEB based application through TIBCO, but the requirement is to execute this operation with the same SAP User name of the user (with his authorization) and not with the TIBCO user that is logged to SAP.
    Is there someone that could suggest me a real time solution and how to develop it? I really appreciate your contribute and I'm at your disposal for any further information.
    Thank you very much!
    Alessandro

    Hi Rob!
    Thank you for your help, but I can't apply this solution, because we need to execute the transaction with a specific user name and not a generic user, besides our user have different authorization, for example the user Mr. Rossi can release only his Purchase Order but not the PO of another user Mr. Bianchi. Moreover we need to see the PO released/modified from a specif user name. So this is our constraint.
    Bye Ale.

  • Get error from SQL AGENT: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D024

    I am running SQL Agent that executes an SSIS process from sql server1. The SSIS process executes its SQL/tables/sp’s  against another sql server2.
    I get an error after adding data flow tasks with transaction supported within a sequence with transaction required. The error, “The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D024 "The transaction
    manager has disabled its support for remote/network transactions"
    Prior to adding this sequence everything was working from sql agent, and there were other sequences with oledb destinations.
    Everything works when running within SSIS Package.
    I see this article on similar issue,
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0bfa2569-8849-4884-8f68-8edf98a9b4fe/problem-to-execute-a-package-and-tasks-with-a-certain-transactionoption-property-i-need-help?forum=sqlintegrationservices
    “I had similar issue and solved by setting the following on both the machines. Allow Remote Clients, Allow Remote Administration,
    Allow Inbound Clients, Allow Outbound Clients, and TIP are enabled in Component Services/My Computer/Properties/MSDTC/Security Configuration.”
    I don’t want to remove transaction required for the “Remove Duplicates from Staging” sequence.
    Anyone seen this?
    Greg Hanson

    DTC was running on remote computer. The problem was it was no longer accepting transactions from remote servers. This was in SSIS so I had to turn to "Transaction Supported" for all Data Flow Transactions.
    Greg Hanson

  • Mqseries and weblogic: XA transactions with MessagingBridge

    Hello.
              Due to usage of XA transaction with MQSeries on host rather that weblogic host, require Extended Transactional Client - i have tried to use MessagingBridge feature in weblogic8.1.
              So, when we send message to JMS queue (source destination for messaging bridge) in transactional context it will be forwarded to MQSeries destination only after commit transaction. And if transaction will be crashed, MessagingBridge will not forward message from JMS to MQSeries.
              It is good substitution for XA transactions with MQSeries, i hope.
              In config.xml it looks like
              <BridgeDestination
              AdapterJNDIName="eis.jms.WLSConnectionFactoryJNDIXA"
              Name="mq_q_xa_bridgeQueue" Properties="DestinationJNDI=TEST2;DestinationType=Queue;ConnectionURL=file:/c:/jndidir;InitialContextFactory=com.sun.jndi.fscontext.RefFSContextFactory;ConnectionFactoryJNDI=QCF2"/>
              <JMSBridgeDestination
              ConnectionFactoryJNDIName="thqueueconnectionfactory"
              DestinationJNDIName="bridgequeue" Name="THbridgequeue"/>
              <MessagingBridge AsyncEnabled="false" Name="wls2mqXA"
              QOSDegradationAllowed="false" QualityOfService="Exactly-once"
              SourceDestination="THbridgequeue" Started="true"
              TargetDestination="mq_q_xa_bridgeQueue" Targets="cgServer"/>
              And this implementation of XA transaction in weblogic+mqseries work.
              Does it have any bugs or hole or another disadvantages?
              Thanks.
              btw, i have found some interesting product at https://jmsbridgesxa.projects.dev2dev.bea.com/.
              But it not works on my environment (weblogic and mqseries on different hosts)

    Hello.
              Due to usage of XA transaction with MQSeries on host rather that weblogic host, require Extended Transactional Client - i have tried to use MessagingBridge feature in weblogic8.1.
              So, when we send message to JMS queue (source destination for messaging bridge) in transactional context it will be forwarded to MQSeries destination only after commit transaction. And if transaction will be crashed, MessagingBridge will not forward message from JMS to MQSeries.
              It is good substitution for XA transactions with MQSeries, i hope.
              In config.xml it looks like
              <BridgeDestination
              AdapterJNDIName="eis.jms.WLSConnectionFactoryJNDIXA"
              Name="mq_q_xa_bridgeQueue" Properties="DestinationJNDI=TEST2;DestinationType=Queue;ConnectionURL=file:/c:/jndidir;InitialContextFactory=com.sun.jndi.fscontext.RefFSContextFactory;ConnectionFactoryJNDI=QCF2"/>
              <JMSBridgeDestination
              ConnectionFactoryJNDIName="thqueueconnectionfactory"
              DestinationJNDIName="bridgequeue" Name="THbridgequeue"/>
              <MessagingBridge AsyncEnabled="false" Name="wls2mqXA"
              QOSDegradationAllowed="false" QualityOfService="Exactly-once"
              SourceDestination="THbridgequeue" Started="true"
              TargetDestination="mq_q_xa_bridgeQueue" Targets="cgServer"/>
              And this implementation of XA transaction in weblogic+mqseries work.
              Does it have any bugs or hole or another disadvantages?
              Thanks.
              btw, i have found some interesting product at https://jmsbridgesxa.projects.dev2dev.bea.com/.
              But it not works on my environment (weblogic and mqseries on different hosts)

  • Is it possible to get an event, if user end transaction with /n?

    Hello,
    i have written an own control component(combination from enjoy controls(Toolbar, Tree and Splitter) in ABAP. If the User end the transaction with the gui status BACK END or CANCEL, I got a PAI and can say save_layout( ) set screen 0 leave screen, that next time the control has the same layout. If the user leaves the transaction with /n, I get no PAI to save the layout. If there are any event that I can catch to save the layout of my control. I find the class cl_system_transaction_state with event transaction_finished, but this event is only raised by commit work or rollback work.
    Thanks & Regards

    Hello,
    There is no event triggered on a "/n".
    Users should know that "/n" leave the transaction brutaly without any confirmation
    Sorry
    Regards
    JM

  • Invoice and Payment in transaction with rollback

    Hi,
    I want to create a payment and an invoice in one scenario step as a synchronous WS call.
    If I create the payment first, then the invoice, how can I roll back the payment if the invoice fails?
    Thanks,
    Jon

    Hi Gordon,
    I mean that if I successfully add the invoice, but for whatever reason the payment fails to add.
    If I was coding this in c# I would start a company transaction, add the invoice, add the payment and then commit the transaction.  If there was a problem adding the payment I would expect the transaction to roll back.
    Is there a way I can wrap the two document creations into a company transaction with B1if?
    Regards,
    Jon

  • How to delete Pending WIP Move Transactions with running status

    hello,
    can any one guide me, how to delete Pending WIP Move Transactions with running status
    thanks in advance
    sadiq

    Please refer to the following note:
    Note: 105647.1 - WIP and COST Frequently Used Troubleshooting Scripts
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=105647.1

  • ME57 transaction with possibility to show in ALV layout

    Hi experts,
    I need change the alv grid in  the transaction ME57. To this, I copied the program RM06BZ00 (scree, includes... )
    When I try execute the program with ALV layout the message ''Scope of list ALV not defined (please correct)" shows.
    To resolve this problem I change the parameter im_service in the ME_REP_GET_TABLE_MANAGER function (Way to function: program ZSAPFM06B / include ZFM06BF04 / Include ZFM06BF04_PRUEFEN_LSTUB)
    When I change this parameter on Debug (manual change) the ALV shows correctly, but when I change in program code the message remains.
    How the way to copy the Me57 transaction with possibility to show in ALV layout?
    Follows the code change:
        CALL FUNCTION 'ME_REP_GET_TABLE_MANAGER'
          EXPORTING
            im_service = 'RM06BZ00'
            im_scope   = l_scope
          IMPORTING
            ex_manager = gf_factory.
    Thank you!
    Edited by: Andréa Molina on Aug 4, 2011 5:12 PM
    Edited by: Rob Burbank on Aug 5, 2011 9:22 AM

    I solved my own problem...
    The change in im_service was right.
    The problem is that:
    The gf_factory back empty in some places and in standrad transaction back with values. The memory clean the gf_factory result.
    So... the only way to show ALV is fill the gf_factory in anywhere the gf_factory is check.
    The places are:
    1. sapfm06b - fm06bf04 - fm06bf04_pruefen_lstub
         Call in RM06BZ00 - perform pruefen_lstub(sapfm06b) using p_lstub.
    2. sapfm06b - fm06bfsl - fm06bfsl_ban_aufbauen
        Call in RM06BZ00 - ban_aufbauen(sapfm06b).
    3. sapfm06b - fm06bf01- fm06bf01_submit
       Call in RM06BZ00 - perform   perform submit(zgb_sapfm06b) using sucomm.
    If the gf_factory is filled in this places... The ALV will show!

  • In EP, call R3 transaction with dynamic variant name

    Hello
    I know that I can call a R3 transaction with a dedicated variant thanks to the process below:
    Create a transaction iview , Tcode = "START_REPORT"
    In application parameters pass these values separated by '&' sign.
    D_SREPOVARI-REPORT - your report
    D_SREPOVARI-VARIANT - your saved variant.
    choose skip inital screen in the parameters.
    But do you have a tip to call a different variant for every user.
    For example, I have users "1111" and "2222". In R3 I have created the variant "1111" and "2222" for a transaction.
    In EP, I would like that when I call this transaction connected as "1111", the variant "1111" is used, and when I'm logged as "2222", the variant "2222" is used.
    Do you know how I can do that ?
    Thank you !

    Hello,
    where is the information which user has to call which variant stored? If it's in R/3 then you can write an wrapper report which is called from the Portal, adds the Variant information and then calls the original report.
    Regards
    Gregor

  • Why my credit card is debitted when i didn't made any transaction with itunes.

    why my credit card is debitted when i didn't made any transaction with itunes..
    These days having a lot of problems with itunes (apple) they are making automatic transactions over my credit card .
    They did 5 transactions in a day and 1 transaction is about 26 USD .. .
    Why these kind of burglary happening with my account ...

    You've checked the purchase history on your account (Store > View My Account, Store > View My Apple ID on iTunes 11, menu option on your computer's iTunes), and have you made any in-app purchases or have any auto-renewing subscriptions ?  If not then you can contact iTunes support via this page (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • HT2486 Can multiple 'appleIDs' share a common address book?

    I would like to share a common address book between multiple users, so that we can see and update a core set of contacts.  Is this possible, as I understand each address book to be assigned to an applieID.

  • How can I move the music files back into my itunes library?

    Hi. I hope you can help. We bought a new computer and I was using my iPod as an external drive to move the music from one to another. This did not work, it said it ran out of room even though there was room on it...Anyway when i returned to my iTunes

  • Activities are not displayed in 2007

    Hi Gurus, We upgraded from 5.0 to 2007. Activity Categories/Types created in 5.0 are not visible in 2007. Could you kindly let me know how to activate the visibility of Activities in 2007.. Thanks in advance, points will be rewarded... Best Regards,

  • Program Monitor Sync Off When using Color correction

    it takes about few splits of a sec never timed it, but when im using any effect an i move a slider or anything the monitor doesnt update for a while. so makes working in the moment impossible. I have an I7 16gb ram with a 2gb nvidia with cuda.  I don

  • ITunes update to 10.4 freezes my PC (Vista)

    My PC uses Windows Vista: When I am asked if I want to update my current version of iTunes (10.2.2.12) to iTunes 10.4, it eventually freezes my computer after I respond ok. So I tried to uninstall my current version. That freezes my PC as well. Help?