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

Similar Messages

  • CHaRM-Is that possible to create multiple Transport Request in UC

    HI Gurus,
    Quick question on ur.gent correction using Solution Manager CHaRM in EHP1. Is it possible to create multiple transport request(TR) for single ur.gent correction (UC). DO NOT confuse with transport task.
    For example, after I created transport request and developer start working and release the task, realised to add another transport request for same UC. When I tried, it did not create any TR but checked the message found that
    Schedule Manager: Monitor
    Job Status: Processing completed, but with warnings
    Program Name: /TMWFLOW/SCMA_TRORDER_CREATE
    Action to be checked: Ur.gent Correction: Create Transport Request
    There is already an open request, XXXXXXXXXX, for this project
    So only way I can do that I released the TR and able to create another TR.
    May be wondering why I need to create another TR, why not create TASK and work on that.
    But this is the requirement at our company.
    I will appreciate the effort and time to provide me the solution of this.
    Thanks
    Ava

    Hi Ragu,
    That's really quick turn around. Unfortunately not able to found whatever you mentioned in your message. Here is detail,
    I navigate to Actions - Depending on Status, found the entry as
    Trans. Type     StatProf         UserStatus     Seq     Action in SAP Change Manager
    SDHF             SDHFHEAD   E0002            10       CREATE_HF
    SDHF             SDHFHEAD   E0002            20       CREATE_REQ
    SDHF             SDHFHEAD   E0002            30       SAVE_PARTNER
    SDHF             SDHFHEAD   E0002            40       SET BO LINKS
    Where SDHF - Ur.gent Correction
               E0002 - In Development
               CREATE_HF -        Create an Instance in SAP Change Manager
               CREATE_REQ -     Create Transport Request with Task
               SAVE_PARTNER - Save Partners in Respective Partner Roles
               SET BO LINKS -     Sets Links to Business Objects
    I don't see any OPEN_TR.
    Any other place need to make change.
    Thanks
    Ava

  • Is It Possible to create multiple tab report in OBIEE 11g?

    Is It Possible to create multiple tab report in OBIEE 11g?

    Triple post even! Multiple tabs in a single OBIEE  &  https://forums.oracle.com/thread/2560266
    Stick to one post!

  • 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

  • Possible to create "multiple" "snapshot" folders in Photo app?

    I mastered the whole "Hold both buttons to take a screenshot" idea. However, all screenshots are saved in one "saved pictures" folder under the "albums" tab. Any way to make multiple folders? Say, by date or website or.... anything?
    I know I can make mutliple folders in iTunes and import them. I'm talking about creating multiple screenshot folders on the iPad itself.
    Also, is there any way to turn off the "Picture frame" flower that comes up on the main screen when powering down? I don't want anyone to be able to just hit that and start a slideshow.
    And...(I tried to put all my "picture questions" in one topic).... Can I load a different picture to each App page? I have one picture on my lock screen and all my "App" pages have a 2nd pic. Can I put a seperate pic background on each of the 11 (or how ever many the max is) app "home" pages?

    Regards creating different folders for different groups of screen shots the only way to do that is to move all the screen shots to your computer, put them in separate folders and then sync them back to the iPad.
    In response to your question about using different backgrounds for different app pages the answer is no. In essence you're not actually switching pages it's just the group of app icons that are changing. In other words the background remains static when you swipe to move to the next so called page of icons.
    Message was edited by: Mr.C UK

  • 8.9 ACH Paycycle -- possible to create multiple files?

    We currently have multiple business units set up to create ACH payments (for example 5 paycycles). Each of these paycycles is run separately as the business units all contain either a different Bank Numbers or a different Account Numbers from the same bank. Here is an example:
    Bank 1:
    Paycycle 1 - Account 1
    Paycycle 2 - Account 2
    Paycycle 3 - Account 3
    Bank 2:
    Paycycle 4 - Account 4
    Bank 3:
    Paycycle 5 - Account 5
    We are currently looking to see if we should try to combine all of the paycycles into one so the user only has to run one paycycle daily. However, we would need 5 separate files written out of the Paycycle.
    Has anyone done this before? Is it possible with minimal customizations? or will it be a lot of customizations?
    Thanks!
    Jennifer

    Jennifer,
    usually payment files are generated based on the bank,bank account and payment method combination. In your case you should be able to create 5 files for 5 different bank accounts even after combining everything into one paycycle.
    Try this and let me know if you face any issues.
    Regards,
    DevD

  • Very urgent, no Transacctions Types possible to create Business Transaction

    Hello, this question is very urgent, please I will be very pleased if anybody can helps me.
    When I want to create a Business Transaction, at CRMD_ORDER, I dont have any Transaction Type to choose to create the Business Transaction, so I can't create anyone.
    I have got many Transaction types, I am usign CRM 5.0 and I have got many Transaction Types with all Channel communication allowed.
    Please check this image for further information:
    <a href="http://img380.imageshack.us/my.php?image=businesspq5.jpg">http://img380.imageshack.us/my.php?image=businesspq5.jpg</a>

    HI Fernando,
    Please check whether all your Transaction type are in Active mode or Not.
    Also check the Allowed Channels status, if it is not filled please add the same from the drop down.
    Regards
    Arun Kumar

  • Is it possible to create multiple LDAP server in the same bi11g application

    Hi,
    they are 8 location users are acessing my report.now i am trying to implementing LDAP server for the user security in my obiee11g application. is it possible to configure/implement multiple LDAP server in the same BI server.
    Thanks
    Deva

    YES. refer http://total-bi.com/2011/07/multiple-ldap-authentication-providers-in-obiee-11-1-1-5/

  • Possible to create multiple pdf files from links?

    In Acrobat X Pro, is there a way to apply the option "create pdf file from link" to several links on the same website at once?.thanks

    About the closest you can get is to use the Tools > Document Processing > Web Capture > Append all links on page command, which will traverse the links and append them to your existing PDF that has been captured from a web site.

  • 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

  • T is possible to create Multiple services for PM order

    Hi,
    Is it possible to take multi-service in a single maintenance order,so that cost will book on that equipment only and at cost center accordingly.At present the equipment and functional location field are disabled in the system.
    Thanks

    As I mentioned, do the config in Define Notification & Order Integration in IMG.
    Then give the equipments in Object List. Then select the equipment & click the button Assignments at the bottom.
    Then you can find the operations. Select the operation which should be assigned to the selected equipment.
    So that, in Operation details screen, you can find that equipment.
    You cant edit the equipment / FL field in operation details screen.
    Regards,
    Maheswaran.

  • IS IT POSSIBLE TO CREATE TRANSACTION WITHOUT USING ACTION BOX?

    HI,
    We are trying to implement CIC NON-TELEPHONY.
    Our requirment is simple we need to create complaint from CIC.
    Is it possible to create a transaction without calling it from action box using default workspaces.
    I mean i will not configure action box at all all i do is create a default work space for complaint which appears when the CIC screen is called up.
    Is it really possible to create this way or is it mandatory that the transaction should be called from action box only to create it?
    Can some one please advice on this we just need to create a couple of transactions from CIC 'cause we are planning to set up a small call centre.
    Though i am not sure of the way it needs to be created i tried to create it with default workspaces ( i mean i did not call it from the action box) but the problem is while i create the transaction in this way i have a problem with partner determination and organization determination they are wrongly determined.
    So, i need to confirm is this way of creating acceptable.
    Awaiting suggestions
    Regards,
    SAM

    Hi Sam,
    As far as I know, the way that you use the Default workspace(Business Activity) with the transaction type as Complaint should be fine. There is no hard and fast rule to only create the Complaints in CIC via Action Box.
    Pertain to the Partner / Org. Determination, when you launch CIC, then as per the configuration, the default workspace(Business Activity) of the transaction type Complaint will be used and at this very begining itself the partner determination(associated with the transaction type) will be executed. And this is what you can see in the workspace as well.
    When you confirm a BP, then as per the customizing maintained in the transaction CRMC_CIC_SEARCH_RULE("Profiles for contact search"), the BP1 and BP2 partner functions will be pushed into the Activity you made as default for the interaction.
    This is how the CIC - with Business Activities & Partner Functions will work. I guess, apart from the way that you had made the default workspace of the transaction type as Complaint, you can also have a look at the above mentioned transaction for Contact searches and according to your need you can change the partner functions.
    Hope this information helps !
    With Best Regards,
    Vinod

  • 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..

  • HANA XSODATA Create multiple entities with associations in single LUW

    Hi all,
    Is it possible to create multiple entities with associations in a single LUW.
    For e.g. we have a Sales Order and Item. This is modelled as 2 DB tables and 2 entities.
    In XSOData I have defined association relationship between them.My XSOData definition is like this...
    "XSDemo.DB::SO"    as "SalesOrder"
       navigates ("SalesOrder_OrderItem" as "SOItem");
       "XSDemo.DB::ITEM" as "OrderItem";
       association "SalesOrder_OrderItem" principal "SalesOrder"("OrderID") multiplicity "1"
       dependent "OrderItem"("OrderID") multiplicity "*";
    My post URI is
    http://server:port/SODemo.xsodata/SalesOrder
    My data is as follows
      "ID": 1,
      "Customer": 123,
      "Desc": "Test SO",
      "SOItem": [
          "Material": "MAT1",
          "Qty": "10",
          "Item": "10"
          "Material": "MAT2",
          "Qty": "20",
          "Item": "5"
    From the post, I get a response 201 (Created). However, only the Sales Order is created. The Items are not created.
    My question is:
    1. Is it possible to create Order and Item together in a single post call ?? If yes, how. What is the syntax of XSOData / Post Request
    2. If it is not possible to create Order and Item together in a single post call, then how do we ensure atomicity of the transaction.
    For e.g. What is Order creation is success and then the Item creation fails ...
    How can we ensure that all is committed or none is committed.
    3. From the documentation I understand that this might be possible using modification exits... However, I want to achieve this without using modification exits...
    Is this possible or not ?

    Hi Thomas,
    Actually the problem is that Sales Order and Order Items are modeled as different entities... So, XSOData allows creation of Sales Order Item independently WITHOUT creation of a sales order header.
    For e.g. URL : http://server:port/SODemo.xsodata/OrderItem
    Ideally, the XSOData should implement a logic that a Dependent entity cannot be created without a Principal entity.
    For e.g. using a Sales order BAPI you cannot create a sales order item alone !
    Similarily, since XSOData is the end point service for the consumer, the XSOData should have the logic to ensure that both principal and dependent entities are created together.
    Otherwise, in the UI the developer has to ensure that the post body is build correctly...

  • Can I create multiple links to the same file without duplicating file?

    does anyone know if it is possible to create multiple links to the same file using iWeb without the program automatically making multiple copies of that file in the published output? It seems that one file is created for each link.
    Thanks!

    Hi Franz,
    have a look at the second method on this page
    http://alyeska.altervista.org/en/iWeb_Downloads.html
    see if you understand how it works (if you don't, please ask me)
    Regards,
    Cédric

Maybe you are looking for

  • Email for pending notifications

    Dear Experts, I have saved varient for IW29 with dynamic dates for the pending notifiications more than 3days. Then scheduled the background jobs with Distribution list. Distribution list for the internet receipents maintainted at SAP Business Workpl

  • Unable to create the Invoice list

    Hi We are recently went to go live. We have an issue related to the Invoice list.  The issue is like this.......... 1. User wasnot maintained the information in Payer master data(Invoice list date & invoice dates). 2. He created the sales order, deli

  • Won't let me uninstall

    I tried uninstalling photoshop through control panel but it wont let me. At first it said, "runtime error" now it says nothing. i think this occurred because i was trying to uninstall it and my computer restarted in the middle of the process. Also, I

  • BMM model for subquery

    Hi All, I have a requirement to pull the generate sql for the report. select distinct T.Sum,A.Region,A.Section from A join ( select sum(Amount),Region from B group by Region)T B on A.Region=T.Region What is the best practice to generate this query wi

  • How to skip Pairing the Pen SP3 in MDT 2013?

    I have Configured the image to pair the pen but I do not want it to ask to pair until after the image has been completed. After doing the step below it now asks. During the 1<sup>st</sup> bootup of the OEM image that ships with the Surface Pro 3 you