OC4J CMT creates multiple transactions

Hi
This is in continuation to the post : Toplink 9.0.4.8 and JTS on OAS 10.1.2.0.0 and 10.1.2.0.2 not rolling back t and
Toplink 9.0.4.8 and JTS on OAS 10.1.2.0.0 and 10.1.2.0.2 not rolling back
I have two stateless session beans (EJB1 and EJB2) both
- are set to be transaction-type = container and
- trans-attribute = required
Both EJBs need to participate in the same transaction and use Oracle9iJTSExternalTransactionController (details are in the above mentioned thread).
When method is invoked on EJB1 it is starting a transaction and all subsequent calles to EJB2 are opening a new transactions. Here is what I have done to test it out.
I wrote a following method that is being called from all EJB methods.
private void printTxnInContext(String methodName)
try{
InitialContext initialcontext = new InitialContext();
String jndiName = "java:comp/pm/TransactionManager";
TransactionManager manager = (TransactionManager) initialcontext.lookup(jndiName);
System.out.println(" Transaction for :" + methodName + ":" + manager.getTransaction());
System.out.println(" Transaction Hashcode for :" + methodName + ":" + manager.getTransaction().hashCode());
}catch(Exception e)
e.printStackTrace();
And This is what I found
(Hashcodes):
05/12/06 21:39:49 Transaction Hashcode for :addMergeRequest:23484941
05/12/06 21:39:49 Transaction Hashcode for :addNewProcess:15938176
05/12/06 21:39:50 Transaction Hashcode for :activateTask:30698528
(ToString)
05/12/06 21:39:49 Transaction for :addMergeRequest:[Transaction a4:a2:dc:48:0:0:0:0:9:0:0:0:0:0:0:0:0:a:1:8:3:16:c4:30]
05/12/06 21:39:49 Transaction for :addNewProcess:[Transaction a4:a2:dc:48:0:0:0:0:a:0:0:0:0:0:0:0:0:b:1:8:3:16:c4:62]
05/12/06 21:39:50 Transaction for :activateTask:[Transaction a4:a2:dc:48:0:0:0:0:d:0:0:0:0:0:0:0:0:e:1:8:3:16:c7:d3]
Any help is appreaciated.
Thanks
Raju

Doug, Andrei and others
I found the problem. I have a Delegate that provides access to all EJBS. This delegate is used by both the webtier and middle tier.It is written in a generic fashion so that the web server and middle tier does not have to be co-located in one container. getInitialContext() which is implemented as follows:
private static Context getInitialContext() throws NamingException
// Get InitialContext for Embedded OC4J.
// The embedded server must be running for lookups to succeed.
// actual code reads from the external parameters
String contextFactory = "com.evermind.server.rmi.RMIInitialContextFactory";
String principal = "admin";
String passwd = "admin123";
String providerURL = "ormi://localhost:3201/shc";
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory);
env.put(Context.SECURITY_PRINCIPAL, principal);
env.put(Context.SECURITY_CREDENTIALS, passwd);
env.put(Context.PROVIDER_URL, providerURL);
env.put("dedicated.rmicontext","true");
return new InitialContext(env);
When the EJB1 tries to look up for EJB2, container thinks that the call is from outside the container and it is starting a new transaction.
When I changed the EJB1 to look up EJB2 to get the context as shown below,every thing seems to rolling back.
private static Context getInitialContext() throws NamingException
return new InitialContext();
Thanks again for pointing me in the right direction.
I will post the same message in other threads.
Raju

Similar Messages

  • System is creating multiple transaction cubes at the backend for one BPCApp

    Hi
    in one of the planning application, we have done a full optimization 8 times , out of that 5 times it came as error and 3 times it has successful.
    Now when we are sending the data through the Input Schedule it's shoiwng success and also the Data Manager package is also shoiwng success with the data showing witing back to the data base.
    But when the user is showing the report there is no data.
    So when we went to check the back end, we saw 7 transactional cubes with different technical name and 1 transactional cube with a _B sign associated with it, showing as a virtual info provider.
    Since the multi provider is not getting changed due to ful optimization we tried to figure out the very recent transactional cube by double clicking on the same and when we try to find the data with respect to data send we couldn't find any data.
    What can be the reasons of  creating multiple transactional cubes for a BPC planning application. And how to do we know which is the current cube for the respective BPC Planning application after the last Full Optimization.
    Regards
    Krish

    Hi Nilanjan
    Wish you a very happy new year.
    I need to get  it clarifed with the team whether they have aborted in between the Full Optimization process. Becuase i remember in one of the earlier engagement , we have aborted the modify application application and it cretaed multipple cubes at the back and subsequently SAP has suggested to delete the other cubes keeping the correct one.Can you elucidate the relevance of the _B Virtual Info provider from the rationale perspective, why its required them.
    I shall update you on the same.
    Thanks
    Krish

  • Is it possible to create multiple transactions in BMT?

    Hi all,
    I have a doubt in implementing the Bean-Managed Transactions in our EJB application.
    Is it possible to get more than one UserTransaction from the ejb sessioncontext in one execution? Or is it possible to begin the obtained userTransaction after commit or rollback again?
    Our problem is we have to handle multiple process in one ejb call, where each process required to be involved in independent transaction.
    Like irrespective of the first process success / failure, the second process should run. And we are trying to begin the transaction everytime in each process. For the first process, the BMT works fine. But while running the second process, the system throws exception saying "Transaction is no longer active - 'committing'".
    Pls help me to know whether any settings problem or my understanding is not correct.
    Thanks
    Thiruppathy.R

    Hi All,
    I have resolved the issue.
    I was getting this error "Transaction is no longer active - 'committing'",
    because I had opened the session from sessionfactory (hibernate) before starting beginning the transaction and I did use the same session for every transaction.
    If I open separate session for each transaction begin, appln works fine. And ofcourse, I am closing the session after the commit / rollback.
    So we can't use the same session for more than one transaction.
    Sincerely,
    Thiruppathy.R

  • Multiple transaction types

    Hi all,
    I am working on SRM 5.0 and ECC 6.0. Implementing extended classic scenario.
    1.] Can someone tell me how to create multiple transaction types for SC which result in PO's in SRM?E.g ACPO; EMPO etc
    2.]Further,when users create shopping cart, they should have the ability to select a transaction type before creating a shopping cart?
    Points will be awarded.
    Trey

    Hi to everybody,
    I am also interested in this topic.I created a new document type ZSHC for the shopping cart. Afterwards I assigned new number ranges to this document type.
    But I am not able to select the document type before creating a shopping cart.
    I wonder why this should not be standard, because I was able to do the above described settings in customizing.
    Any ideas?
    Best regards,
    Martina

  • How to create Dynamic Tab in ADF, to achive multiple transaction at a time

    Hi,
    I want to create Dynamic tab in ADF, to achieve Multiple transaction at a time by opening new tab for a transaction.
    For Example: User can order multiple product at the same time by opening the order form in multiple TAB.
    Scenario:
    i) When user will click on addNewTab, new tab will be added.
    ii) If user Click on close btn on Tab, Tab will be closed (Transaction will be removed).
    iii) user can save all transaction( can save multiple product Order in different tab.)
    iv) when user select any product in form, Rename the Tab name as well.
    Need Help on this :(
    Thanks & Regards
    Pratap Rudra

    Hi Rudra,
    You can implement all your problem using Tab API .
    When you are closing the tab you can roll back transaction which you want.
    Tab API will give control over closing and opening tab.
    And also you can give tab name while opening the tab.
    Thanks
    Prateek

  • Using Select all to create multiple lines in a sales order

    Hello SAP experts,
    In our business practice users create multiple line sales orders with reference to contracts and use the copy paste method and then assign each line to the contract manually.
    After a few years of this practice i found a new way to create multiple lines but it doesn't quite work correctly. When you have created the first line of an order if you click on the select all button the system will ask you how many lines do you want to copy. I don't know if this is standard SAP but 3 things don't happen when we use this 1) The schedule line information is blank 2) conditions do not copy from the contract even though the contract has been referenced. 3) Since there is no schedule line information the order fails when saving and we get a update terminated message.
    I am having problems finding any documentation around this function so any help with this would be greatly appreciated.
    error when updating is
    Transaction..   VA01
    Update key...   4D358878A8B601AAE10080000A2C4982
    Generated....   28.01.2011, 13:47:23
    Completed....   28.01.2011, 13:47:23
    Error Info...   00 671: ABAP/4 processor: GETWA_NOT_ASSIGNED

    GETWA_NOT_ASSIGNED
    Many threads are there on this error message and you would come to know if you google with this text.  Check couple of threads where  the same topic was discussed
    [Re: GETWA_NOT_ASSIGNED|Re: GETWA_NOT_ASSIGNED;
    [Re: GETWA_NOT_ASSIGNED ABAP Dump|GETWA_NOT_ASSIGNED ABAP Dump;
    Also there are some 20 OSS notes on this error message and you can have a look at the following notes:-
    1)   Note 913679 - VA01: Short Dump GETWA_NOT_ASSIGNED on click of quantity.
    2)   Note 591955 - ABAP runtime error GETWA_NOT_ASSIGNED
    3)   Note 870670 - SD_SALES_DOCU_MAINTAIN_DIALOG termination with GETWA_NOT_***
    4)   Note 141314 - VA02: Dump with 'GETWA_NOT_ASSIGNED'
    thanks
    G. Lakshmipathi

  • Create multiple sales orders from single service notification?

    Is it possible to create multiple sales orders from a single notification (IW51)? 
    We currently create sales orders directly within transaction IW51 (Create Service Notification).  We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen.  We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification.  This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
    I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here.  I treied to do a create with reference, but there is no ability to create with reference to a service notification.
    Do I have to create a second service notification for the 2nd Sales Order for this to work?  I want to avoid doing this if at all possible.
    I'm running SAP R/3 Enterprise
    Thanks for your help!

    Hi,
    go to vtaa- copy controls for sales document to sales document.
    select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
    No need to change update document flow.
    After setting zero in copy control that be told on above. create order with respective to the quotation.
    After saving the order.
    go to document flow to see the status in between quotation and order.
    If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
    Have a good day..

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • Advice needed on designing schema to accomodate multiple transaction tables.

    Hi,
    The attached images shows my current schema. It consists of three transaction tables, a product table and a calendar table.
    - Background -
    The product table 'Q1 Data Set' contains all unique sales. In addition it also contains a number of columns by which I will later filter my pivot tables (e.g. whether the customer of the order is new/returning). This
    table also contains a column named 'DateOrdered',the date the order was originally placed (but not paid). 
    Each sale that is paid can be done so either in a single transaction, or across multiple transactions of different transaction types.
    An example of a sale  paid in multiple parts would be an order that has three transactions;
    one online (table 'trans_sagepay',
    one over the phone (table'trans_epdq')
    and another by card (table'trans_manual'). Furthermore there can be more than one transaction of each type for an sale.
    I have created measures which total the sales in each transaction table.
    Each transaction has a 'transaction_date' which is the date of that individual transaction.
    The calendar is simply a date table that has some friendly formatted columns for laying out pivot tables. An example column
    is FiscalMonthAbbrv which displays months similar to '(04) - January'
    to accommodate our fiscal year.
    - Problem -
    My problem is that I need the ability to create some tables that have the
    Date Ordered as the rows (listed by Year>Month), and I need to produce other tables that have
    Transaction Date as the rows.  
    Date ordered works fine, however the problem comes when I try and create a table based on the transaction date.
    With the current model seen in the attached image I cannot do it because the transactions have a relationship to
    Q1 Data Set and this table has the relationship with the
    Cal_Trans table. What happens in this scenario is that whenever I set the rows to be FiscalMonthAbbr  the values it displays is the transactions based not on transaction date but date ordered. To explain further:
    If I have an order A with a DateOrdered of 01/01/2014, but the transaction of £100 for that order was made later on the 05/01/2014, that £100 is incorrectly attributed to the 01/01/2014.
    To clarify the type of table I am aiming for see the mock-up below, I however NEED the ability to filter this table using columns found in
    Q1 Data Set.
    How can I make a schema so that I can use both DateOrdered and TransactionDate? I cannot combine all three transaction tables into one because each transaction type has columns unique to that specific type.

    Thanks for your suggestions, at the moment I don't have time to prepare a non-confidential copy of the data model, however I've taken one step forward, and one step back!
    First to clarify; to calculate sales of each transaction type I have created the following measures (I've given them friendly names):
    rev_cash
    rev_online
    rev_phone
    I then have a measure called rev_total which sums together the above measures. This allows me to calculate total revenue, but also to break it down by transaction type.
    With this in mind I revised the schema based on Visakh original suggestion to look like this:
    Using this I was able to produce a table which looked like that below:
    There were two issues with this:
    If I add the individual measures for each transaction type I get no errors, as soon as I add the 'Total Sales' measure on the end of the table I get an error "Relationship between tables may be needed". Seemingly however the numbers still calculate as expected
    - what is causing this error and how do I remove it?
    I CAN with this scenario filter by 'phd' which is a column in the Q1 Data Set table
    and it works as expected. I cannot however filter by all columns in this table, an example would be 'word count'.
    'Word Count' is a integer column, each record in the Q1 Data Set table has a value set for this column.
    I would like to take the column above and add a new measure called 'Total Word Count' (which I have created) which will calculate the total number of words in that monthly period. When I add this however I get the same relationship error as above and it
    display the word count total for the entire source tbale for every row of the pivot table.
    How can I get this schema working so that I can filter by word count and other columns from the product table. It Is confusing me how I can filter by one column, but not by a another in the same table.
    Also, I don't fully understand how I would add a second date table or how it would help my issues.
    Thanks very much for you help.

  • How to create Multiple Address for a single customer

    Respected Members,
    In tcode Xd01 we create on customer but there we can maintain only one address but sometimes a scenario can be that single customer can have different address .
    How to do that.Any exit is available to create multiple address with creation of single customer.
    This provision is given while creating a Business Partner.Tcode is BP .In this Address Overview tab is there and you maintain multiple address to single Busines partner.
    Same thing can we do for the customer.
    Any solutions or suggestions,please give me your support.
    Thanks

    Hello Manish,
    Unfortunately Customers have only one address. However you can use contact persons to store different addresses, or (in the Sales view) you can assign other partner functions with different addresses (e.g. one customer acting as the Sold-to partner may have different Ship-to partners).
    If these options do not meet your requirements, you could extend the customer master data with your own functionality and enhance transaction XD01 with your own screens for holding alternate addresses.
    Regards,
    John.

  • Multiple Transaction with Fully Rolled Back

    Hi there,
    I've the scenario for a project that require multiple transaction as a subsequent process. I'll have one RFC Function Module that wrap multiple BAPI inside there. This RFC will be publish as a webservice and will be consumed by .NET application.
    The problem that I've, the subsequent process will depend each other. For the example : Create SO, Purch Requisition, and with Reference to PR, I need to create the PO. So I need to commit the transaction for Sales Order creation before I can't continue to create the purchase order.
    If there is a problem during the creation of PO, the Sales Order already committed to the database and I can't roll it back.
    Any suggest, how I can handle this situation with concept of Complete the whole transaction and not at all if there is an error for one of the transaction.
    Thanks in advance for any help.
    Cheers,
    Danny

    Hi Danny,
    Unfortunately this is the only option for you because you cannot rollback after you commit to the database. The other option would be to trigger Check BAPIs or BAPIs with test mode = 'X'....but that will be a problem for e.g. if you want to create a PO with reference to a PR created in the earlier step. If you can omit the part of creating with reference, then I think this is possible by first triggering BAPIs in test mode for all the documents that have to be created - if the whole chain is successful then you trigger BAPIs in update mode to post the docs (Commit) or else exit the process. Hope it made sense.
    Cheers,
    Sougata.

  • In Oracle 9 Application Server can we create multiple instances???

    Hi I need one help this is regarding to the oracle 9 application server in this can we create the multiple instances??
    my application was already developed and currently it is working with one instance for this i need to create the another one more instance which is same as existing and my application is web application developed in Forms6i and the db is oracle 9i my requirement is to create one more instance what are all the configuration files need to be modified and please give this info ASAP....

    It is still not very clear. What do you mean by creating "one more instance of the same application in the same application server"? By "application" do you mean another instance of OC4J in same Application Server Instance? If yes, you can do that. I mean you can create another OC4J component in same Application Server Instance without doing another installation. Refer this for details:
    http://download.oracle.com/docs/cd/A97329_03/core.902/a92171/config.htm#1010793
    If you are looking to create another Application Server Instance out of same installation/binaries (i.e. Oracle Home) than the answer is no. You can not create multiple Application Server Instances out of one Oracle Home. You will have to do another installation in a different Oracle Home and that's how you will get another Application Server Instance.
    Hope this helps.
    Thanks
    Shail

  • MT 100 DME file for multiple Transactions

    Hello
    We are not able to generate the <b>DME file in MT100 format for Multiple Transactions of the Bank Account after F110.</b>
    We are able to generate DME file in MT 100 format for a Single Transaction.
    Please suggest us if we had missed any configuration or any specific process is required to generate the DME file in MT100 for Multiple Transactions of the Bank Account after F110.
    Regards
    Srini

    Hi,
    I am just trying to give some additional information on this one. Here is a snippet from the PDF handbook.
    Option:
    SpoolBatches Enter Yes to tell the PDF Print Driver to print an entire batch of transaction to a single PDF file. The default is No.
    Please do keep in mind...
    • To create a linearized PDF file (for page-at-a-time downloading), you must set this option to No.
    • If you are using single step processing, you must set this option to No.
    In addition to this, you must also turn off the MultiFilePrint callback function. To do this, remove or comment out the CallbackFunc option. Here is an example of commenting out the CallbackFunc option:
    < Print >
    ; CallbackFunc = MultiFilePrint
    You cannot generate linearized PDF files if you set the SpoolBatches option to Yes because when linearizing, the PDF Print Driver must have the entire contents of the PDF
    file in memory. Since batches can be very large, it is not practical to keep an entire batch in memory.
    Important point for your reference:
    I just went through the FAQ in the below link and understood that there are some problems when you try to create a single PDF for a batch as a whole - Acrobat Reader only display the first transaction in a PDF file which contains multiple transactions.
    FAQ Book link -> http://download.oracle.com/docs/cd/E16256_01/faq_book.pdf
    PDF Handbook -> http://download.oracle.com/docs/cd/E16256_01/pdf_book.pdf
    I did not get a chance to explore much on this. Please explore if it helps. Thank you.

  • Create multiple deliveries against the same customer return order

    I want to create multiple deliveries against the same Customer return order. But once the RF transaction is run it closes all the lines.  We need to be able to receive multiple times against the same RA number and create different deliveries. Any ideas?
    Will reward points to any helpful answers

    are the deliveries being created by RF monitor ?
    Or only picking is happening by RF?

  • How to create multiple vacant positions in OM!

    Hi all,
    I would like to know if there is any transaction code or report for creation of  vacant positions in OM , data being uploaded from an excel/text file.
    Regards
    Bharat

    Hi Bob,
    I am trying to use the report RHVOPOS0 to create Multiple Positions.
    But, when I am trying to use "Multiple Selection" arrow button, it asks me for Object ID. Since I want to create multiple position (S) objects, what ID is it asking for?
    Please enlighten. Thanks.
    Sita

Maybe you are looking for

  • Can you help us improve our SAProuter configuration process?

    Have you recently discussed installing SAProuter in order to enable remote connectivity to your SAP BusinessObjects systems with an SAP Support Consultant? Perhaps you have watch a video or read some of the material at http://service.sap.com/remote-s

  • Setting Emulator Size in Flash Builder

    I am coding an Ipad app in flash builder 4.5. The emulator is bigger than my screen (it is taller, than my screen), I am on a laptop.  Is there anyway I can adjust the emulator size to fit my screen. Tried dragging on the sides to resize, but that do

  • Configure or disable CLDC/MIDP?

    I'm having a hard time using java applications on my Nokia XpressMusic 5130. The problem being everytime the app tries to read/write from flash or SD, or connect to the internet via GPRS, this pop-up keeps telling me "Would you like to grant this app

  • Find child record of a parent record

    Hi, I need to find the child recond of a parent party and if that child also have some child then I need to find again and this process will go untill no child record found(child is null) I am trying to do it by the help of hierarchical query. can an

  • Allow a particular mvt type for a storage loc.

    hi, Is there a possibility to allow only a particular mvt type say 311 for a particular storage location. regards