How to have the JTA transaction in ServiceEndpoint interface java method

Hi,
I have query how to have the JTA transaction in SEI(Service endpoint interface) generated by WSDL.
I have a MDMListener (using MDM API) which looks for a recordchange in MDM repository which needs to be send to PI7.1 via soap request.
1) I had imported the WSDL from ESR(PI) and generated outside-in proxy.
2) Created ejb3.0 stateless session bean using NWDS
3) Created web service client application by generating the WSDL again (by Generate client)
4)Added a method callPI()with Service and i set the context with endpointaddress property as the soap location of the sender agreement configured in PI7.1.
The damean thread listener(EventDispatcher) looks for MDM record change and it calls the method callPI() from ejbsession bean by lookup to transfer the record to PI7.1 system via webservices(web method). I hit the below error.
Exception com.sap.engine.services.ts.exceptions.BaseIllegalStateException: Status of ( SAP J2EE Engine JTA Transaction : 06223ffffffa20048fffffffe ) should be active, but it is STATUS_COMMITTED = 3.
at com.sap.engine.services.ts.jta.impl.TransactionImpl.registerSynchronizationWithoutStatusChecks(TransactionImpl.java:672)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.registerSynchronization(TransactionImpl.java:641)
at com.sap.engine.services.ts.transaction.TxLevelSynchronizations.addSynchronization(TxLevelSynchronizations.java:118)
at com.sap.engine.services.ts.transaction.TxManagerImpl.registerSynchronization(TxManagerImpl.java:829)
at com.sap.transaction.TxManager.registerSynchronization(TxManager.java:303)
at com.sap.engine.messaging.runtime.j2ee.sapengine.SAPTransactionManager.registerSynchronization(SAPTransactionManager.java:126)
at com.sap.engine.messaging.impl.util.tx.TxController.<init>(TxController.java:83)
//Method in the ejb stateless session bean
@WebServiceRef (name="DistributeMasterDataService") DistributeMasterDataService service;
@RelMessagingNW05DTOperation(enableWSRM=true)
public void callPi(DistributeMasterDataRequestType req) {
port.distributeMasterDataOutA(req);// the distributeMasterDataOutA is the method available in SEI..Here is the issue on JTA
For the first time the message(req object)transmits to the PI successfully,but for the second call i hit this JTA Transaction :status should be active, but it is STATUS_COMMITTED = 3.
I tried chanding the transactionmanagement from container to bean.
@TransactionManagement(value=TransactionManagementType.BEAN)
@TransactionAttribute(value=TransactionAttributeType.REQUIRES_NEW)
I wanted to know how can i have the JTA transaction status in SEI(service enpoint interface)java method distributeMasterDataOutA.Since it is an interface i dont know what annotation can be used.
If its possible i can try this UserTransaction,
http://help.sap.com/saphelp_nw04/helpdata/de/f6/7a8df922db4ab79342b46c48dac7d0/content.htm
ut.begin() & ut.commit(),so that everytime this method is called it will treat as a new transaction..
Let me know if you need more details??,Any idea provided would be great.
Thanks
Sabarinathan

Hello everybody,
The issue resolved,we need to have the bean management transaction type and not the container.
and the transactionattribute value as Requires New
rgds
Sabarinathan
Edited by: Sabarinathan Selvaraj on May 12, 2009 2:17 PM

Similar Messages

  • How can I tell what table(s) have the most transactions against them

    Hello, in Oracle 11.2.0.3, RHEL 6 x86-64, how can I tell what tables have the highest transaction activity?
    Picked "Objects" because I could not find a space related to performance tuning
    Humbly,

    What version of Oracle are you running (standard or enterprise)?
    Easist system is to run an AWR or statspack report. If you run either of these you will see sections on segments (so segments by logical reads, physical reads) which is easily digestible.
    v$segment_statistics will also give you a breakdown on segment access.

  • Oracle 11g: How to ensure the same transaction across several BPEL calls?

    How to ensure transaction semantics across invocations of several BPEL services with a Database operations (Insert, update)? We are using transaction REQUIRED property in all of our BPELs. We are using webserive and JCA to access and modify the same row. Our code uses a combination of JCA, Spring bean, enity services, EJBs in these BPELs. The code can be more efficient, but, at this point, we have no option but to fix the transaction issue in this code. So, our question is how to ensure the same transaction context is used in all these BPELs to inser/update the same row? We have tried to set the GetUnitOfWork in the JCA Adapter but it did not provide any solution. Apaert from setting transaction in BPEL to REQUIRED and the JCA Adapter to use Unit of work, we are out of ideas. Any help is much apprecited. We are using Oracle SOA Suite 11g 11.1.1.5 version. --chary

    Hi,
    I can help you if you can describe the processes.
    There can be some difficulties when you try to use the same transaction especially when you use many DB transactions & BPEL processes.
    Using unit of work only ,might not be enough.
    Thanks
    Arik

  • How to divide the CRM transaction data by company cord?

    How to divide the CRM transaction data by company cord?
    CRM transaction have not company cord, so how to divide the data on BI report by company cord?
    Do I have to get the sales organization from customer master?
    Some transactions have not master data like lead. I want to know your experience.

    Hi
    This is self reply.
    I should use the sales organization instead of company cord.
    But some business like lead from contact from customer can not separate the company, in situation one call center for multiple companies.
    We should use another field to divide the company. Ex. Product, campaign, etc.
    If someone knows better way to solve this issue, let me know the reply.
    Regard
    u1

  • How to get the current transaction variant ?

    dear guru,
    could you please tell me how to get the current transaction variant?
    i tried the following method:
      DATA l_tcvariant TYPE tcvariant.
      CALL 'DY_GET_TX_VARIANT'
         ID 'VARIANT' FIELD l_tcvariant.
    but it failed.
    best regards.
    zj

    Try something like this
    DATA:  VARIANT LIKE SHDTVCIU-TCVARIANT.
      CLEAR VARIANT.
      CALL FUNCTION 'RS_HDSYS_GET_TC_VARIANT'
       IMPORTING
         TCVARIANT                     = VARIANT
    *     FLAG_CLIENT_INDEPENDENT       =
    *     RC                            =
    *   TABLES
    *     T_SCREEN_VARIANTS             =
    *     T_INACTIVE_FUNCTIONS          =

  • How to update the FB01L transaction using the FM  bapi_acc_document_post

    Hi All,
            How to update the FB01L transaction using the bapi_acc_document_post but there is no ledger group field in the bapi function module.
    Please help me how to do it.

    hi,
    use batch input method for the same.
    check this.
    [https://forums.sdn.sap.com/click.jspa?searchID=19107237&messageID=884744]

  • How to add the business transaction to t-code : CIC0 in win client

    Dear sir,
    We use CRM 5.0 . We would like to add business activity tranaction into t-code : CIC0. But I don't know how to do. Please kindlyadvise how to add the business transaction to t-code : CIC0 in win client.
    Thank u and best regards,
    Vimol

    Hello,
    For each transaction type (e.g. Sales Order, Business Activity, opportunity, ....) you can maintain in which channel (IC WebClient, IC WinClient, SAPGUI, PCUI, ...) they are allow to be used. Probably the transaction types you want to see in the IC WinClient (= CIC0) are not enabled for this channel, that's why they don't appear in the WinClient (CIC0).
    How to do this?
    SPRO>CRM>Transaction>Basic Settings>Define transaction types
    Here, look for the transaction types you want to enable in WinClient. Select the transactiont type and select "Channels" from the left pane. Here, add the channel "IC WinClient" (or something like that, I don't know the exact name anymore, in newer versions this no longer exists).
    Save and restart the CIC0, after this the transaction type should be enabled.
    Hope this helps,
    Joost

  • How to have the same data which I have in iPhone 5 to my iPod 4g?

    How to have the same data which I have in iPhone 5 to my iPod 4g?
    Thanks for your help

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    Some apps will then automatically sync new data via iCloud if the app supports that.

  • How to have the name of code PL/SQL

    I make a generique tools for logging in PL/SQL : http://log4plsql.sourceforge.net/
    1. how to have the name of the code PL/SQL which is run ?
    2. how have a pl/sql call stack dynamically ?
    proc1 -> proc2 -> package1.proc3

    For 2, check if DBMS_UTILITY.FORMAT_CALL_STACK will work for you:
    http://tahiti.oracle.com/pls/db901/db901.tabbed?section=32613
    For 1, is there anything in DBMS_DEBUG that would help?
    http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/dbms_deb.htm#1015019

  • How to have the format bar on top in pages

    how to have the format bar on top in pages?

    Do you mean Pages, the Word like application in iWork?  If you do, I can ask the moderator move your thread to the Pages forum.

  • How to have the Chat history without the Exchange server?

    How to have the Chat history without the Exchange server?

    Hi,
    You can try Archiving server. Archiving is the storing of IM and conferencing data in an SQL backend database. This data is not instantly readable / searchable. The Lync users are not able to read it directly. The admin can export the data using Lync powershell
    and then convert it into a readable format.
    Kent Huang
    TechNet Community Support

  • HT5312 I can't remember the answers to my security questions.  How do I get them.  I've built a rescue email but don't know how to have the answers sent to it.

    How do I get iTune to send me the answers to my security questions or how to reset them.  I do have a rescue email address but don't know how to have the answers sent to it.

    1. See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for support
            and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions

  • How to have the back cover replaced on my iphone 4s

    How to have the back cover replaced on my iphone 4s?

    Hi
    Thank you for taking the time to answer my query.  When I tap the bookmark at the bottom of the screen, it opens a screen with Allowed Sites and History when I tap either of them there is no option to delete, also there is no Favourites to tap after tapping the bookmark icon.  Each time I tap the Safari app, and try to type something into the address bar, the app closes and I am unable to access the internet although connected. Any suggestions, would resetting phone help?

  • How long have the life cycles been for previous 13" MacBook / MacBook Pros?

    How long have the life cycles been for previous 13" MacBook / MacBook Pros before Apple introduced the next model?

    Check out this site for information like that:
    http://buyersguide.macrumors.com/

  • How to have the ip address of a visitor

    How to have the ip address of a visitor to fill a ztable ?
    Which code do I have to use ?
    Thx

    Hi Jerome,
    now that you got your answer, reward the helpful answers and mark the thread as answered once your question is answered.
    to learn more about SDN way fo saying thanks check out this weblog.
    /people/mark.finnern/blog/2004/08/10/spread-the-love
    Regards
    Raja
    Close your old threads for example
    How to maintain Hostname ?

Maybe you are looking for

  • Assynchronous Reading

    Is there any package in Forms I can use to make an assynchronous reading using a serial port? I've been using Text_io package but get_line command wait some character of end of line. It makes system get stopped. Is there any package that offer a meth

  • Java plug in 1.4.1_04 the install package could not be opened

    Hi . I am trying to install java plug in 1.4.1 on a Windows XP client SP1 and I receive the following error. Windows Installer The installation package could not be opened. Verify that the package exists and that you can access it, or contact the app

  • On which platforms is Java6 SDK still not supported?

    Is there some up-to-date document that gives an overview of which version of Java is available where? It seems Java5 has reached its end of service life, but then, people keep telling me that some Mac/Apple platforms still do not have Java6 available

  • Returning resultSet from java function

    Hello, I have created one function which throws query to database and creates a resultset based on that query. I am trying to print the status of database i.e., System.out.println(rs.next());This gives me result : true. I am then returning this resul

  • "Playlist" menu

    Hey everyone, I hope I can get a little help on this. I am wanting to make a sort of playlist menu for a dvd I am making in DVDSP v.2. Basically I want a menu with a list of 12 songs that I will be able to click on (or navigate through by the remote