Demarcate and propagate transactions from web components

Hi,
Can I start a transaction from within a JSP/Servlet and propagate it to EJBs?
For example, say there are EJB1.method1 and EJB2.method2, both marked "required". Code a JSP/Servlet like:
1 UserTransaction tx = ...;
2 tx.begin();
3 EJB1.method1();
4 EJB2.method2();
5 tx.commit();
Does it embrace the two EJB methods in one transaction? What if the web components and EJBs are deployed on different servers physically?
Thanks!
Sunyu

I think you probably want to look at a Web services transactions system that integrates with the JTA. That way you can span your transactions across both a loosely coupled and closely coupled environment. There are some examples at www.arjuna.com
There are several web services transactions specifications out there (OASIS Business Transactions Protocol and IBMs Web Services Transactions, for example). The latter is probably the way to go as it's been designed to interoperate with existing TP systems (it doesn't do that too well at the moment due to "issues" in the spec. but those will be fixed). In addition, JSR 156 is aiming to give J2EE a standard set of interfaces to Web services transactions and interoperability with other J2EE transaction services (JTA and JTS) is high on the agenda.
Mark.

Similar Messages

  • Passing parameters to Transactions from Web dynpro Application through ITS

    Hi,
    i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
    '%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
    Called T-Code CAT3
    Passing Parameters are:
    Data Profile TCATST-VARIANT
    Pernr: CATSFIELDS-PERNR

    Pradeep,
    iam trying to pass values from webdynpro application to SAP GUI Transaction
    here is the sample code which iam using
    CONCATENATE  'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
    '%20CAUFVD-AUFNR='
                 'ApplicationParameter=CAUFVD-AUFNR='
                  lv_workorder';'
              'DYNP_OKCODE=SHOW'
             INTO lv_url.
    i could'nt able to succed as its displaying page not found exception.
    Help me on this to proceed further
    Regards
    Jaipal.E

  • How to join data from SAP BW and Oracle database from Webi?

    Hi,
    Need to  create a Web Intelligence Report connecting to multiple data sources.        
    Ø SAP-BW contains the data (All units).                                                                               
    Ø Oracle db contains the access security data (respective units                                                                    
    for the user).               
    Since Universe can only connect to a single data-source we have to create two universes connecting to SAP-BW and Oracle db respectively and then create a webi report to point the two universes to retrieve the equi-join data on the report.
    May I know which layer I can join the data? What kind of data I can join?
    Can I merge dimensions from both the data sources? What about measures?
    How I can create SQL query in Webi in order to simulate the join to the two data source?
    Appreciate any info related.
    thanks and regards
    nora

    Hi Nora,
    You can use Data Federator technology to federate multi-sources such as SAP BW and Oracle.
    Las you just have to create a universe on the Data Federator data source and the universe isee the data source as a single source whereas it is not.
    Then any clainet that consume uninverses can take advantage of this solution.
    Regards;
    Didier

  • Transaction ID when saved transaction from web ui

    Hi,
    After implementation of support package SAPKU70210, when we saved incidents from web ui the "transaction id" does not appear in message:
    Before SP: " Transaction 3100007471 saved"
    After SP: "Transaction  saved"
    Please, any idea?
    Thanks in advanced.

    Hello,
    Check if Note 1944322 helps.
    Regards,
    Ashik

  • R12: how to show ap invoices and ar transactions from same party id

    Is it possible to see the open ap invoices and open ar transactions from the same party id
    in one screen or report?

    I'm sorry your posts keep getting locked despite you asking not to have them locked. To avoid this in the future, if you accidentally post in the wrong forum, edit the post in the wrong forum to remove the content, and change the titlte to please ignore or something similar.
    This is the response I made on your post in the SQL PL/SQL forum since I will not be able to respond on that one.
    The exists operator looks for a record that matches the criteria you give it. If it finds a record, it returns true, if not it returns false. So, when you say:
    exists (select 1 from ap_invoice_lines_all
            where invoice_id = i.invoice_id and
                  po_header_id is null)It is really asking is there a record in ap_invoice_lines_all where invoice_id = 100 and po_header_id is null. Since there is such a record, the exists return true and the record from ap_invoices_all is returned.
    I'm not sure whether your last query should be against ap_invoices_all or ap_invoice_lines_all, and i'm also not entirely sure what result you actually want. If you want to find records in ap_invoices_all where all of the lines have a non-null po_header_id, then you need to reverse your logic, something like:
    select *
    from ap_invoices_all i
    where invoice_num = '1010' and
          not exists (select 1
                      from ap_invoice_lines_all
                      where invoice_id = i.invoice_id and
                            po_header_id is null)That will show only invoices where all of the lines have po_header_id populated. Just change the is null to is not null to get invoices where no lines have po_header_id populated.
    If you are looking for something else, try again to explain what you want, with some sample data for the two tables, and your expected results from that sample data. The sample data should preferabble be in the form of create table ind insert statements.
    John

  • Calling SAP transaction from Webi report?

    Hi experts,
    With BI/BW query, we can retrieve data from R/3 source system via report-to-report interface. For instance, from a Purchasing query with data aggregated by Vendor, the user can trigger the R/3 transaction ME2L by clicking on a row.
    Is there a similar feature in BOBJ Webi report? For instance, can we use hyperlink or some other means to do this?
    Any idea will be much appreciated.
    Thanks and regards,
    Linda

    Hi Stratos,
    Really appreciate your advice. Following your suggestion of using blank cell, the server is determined dynamically for the hyperlink.
    However, there're still some issues with defining a hyperlink for table columns. For instance, I have 2 columns in the table - Cost Centre and Cost Element. SAP transactions KS03 and KA03 are to be launched respectively for these 2 columns. The value of the clicked column (Cost Centre, Cost Element) is to be passed to the SAP transaction.
    I've created the following hyperlink for the Cost Centre column:
    http://[[MyServer]]?sap-client=([Client])&sap-language=EN&~transaction=KS03
    with Tool Tip = [[L01 Cost Center Key]]
    The link is not working immediately, so I adjusted the formula as follows via the formula editor (by adding double quotes for <MyServer>):
    ="<a href=\""[[MyServer]]"?sap-client="URLEncode(""[[Client]])"&sap-language=EN&%7Etransaction=KS03\" title=\"\" target=\"_self\" nav=\"web\">"[[L01 Cost Center Key]]+"</a>"
    Clicking the <tick> button does not return any error.
    When I click on the Cost Center column, the SAP transaction is launched successfully. However, there're still a few issues:
    1) The Cost Center Key is not passed to the SAP transaction. Is Tool Tip the way to go?
    2) When checking the hyperlink (via right-click > Hyperlinks > Edit Hyperlink), I found the Tool Tip (L01 Cost Center Key) has disappeared
    3) After I've clicked <OK> to exit the Edit Hyperlink window, I got the error message 'Invalid character '[[MyServer]]' at position 14. (Error: WIS10080)'.
    -- It seems correct syntax in the formula editor is considered invalid in the hyperlink editor.
    Do you mind commenting on what could have caused the above issues?
    Thanks again for your time.
    Linda

  • How to store reports on cr server 2008 and view them from web application

    Hi, I want to store my rpt files on the crystal reports server, under "Folders", and then from my web application use  "CrystalReportViewer" control to show these reports.
    Now I setup a crystal reports server 2008 on my server, and install crystal reports 2008 on my client develp machine. I have searched some sample codes from Internet, but many Business Objects dlls they used I could not find from my computer, for example, I can not find infostore dll and  Business Objects.sdk. It seems I have to install some sdk to use these objects.
    Could you tell if which sdk I have to setup to achieve my goal, or if can give me a sample would be highly appriecatied.

    Q. From your information, it likes this function above can not be done now?
    A. At the moment, the only way you can view reports stored on CR Server 2008 are with the Java SDK or OpenDocument.
    OpenDocument may be a nice option for you, as there would not be much programming involved. Please see this documentation for information how to use this. Please note that in CR Server 2008, you will be using Java OpenDocument.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Q. can use CR server XI instead, this version has been a while, so certainly has .net sdk available for realize this function, does'nt it?
    A. CR Server XI has the .NET SDK. You can find .NET samples here:
    https://www.sdn.sap.com/irj/boc/businessobjects-sdklibrary
    Q.  I download CRRedist2008_x86.msi and install it on my develope machine, from the instruction said it will install lots of .net dll on my computer, but I just can not find them, do you know where they are?
    A. It should install the necessary files to C:Program FilesBusiness Objects
    You can find more information about the Crystal Reports .NET distributables in the CR .NET help file, in the deployment chapter:
    https://www.sdn.sap.com/irj/boc/crystalreports-sdk
    Cheers,
    Fritz

  • Creating userid and password login from web page

    I want to create a page where i will have userid and password.When i log in it should check the username and password in the table.
    When i make a new entry also it should be added in the table
    Please help me how to proceed with this .
    Please help me in creating the html page also

    mod_plsql manual at:
    http://download-east.oracle.com/docs/cd/B25221_03/web.1013/b25599/toc.htm
    Configuration for mod_plsql:
    $ORACLE_HOME/Apache/mod_plsql/conf/dads.conf
    First thing to do is to ensure that mod_plsql works and can run your stored procs. Edit the dads.conf file (use dads.readme for instructions) and configure a DaD (Database access Descriptor) for you database.
    Restart Apache to effect the config change. I simply (and incorrectly) use $ORACLE_HOME/Apache/Apache/bin/apachectl - and it will tell you why it is not recommended and the correct command to run.
    The URL for will be something like:
    http://yourserver/dad/[schema.][package.]procedure[&parameters]
    The stuff in square brackets are optional.
    Create the following sample PL/SQL proc to call from the web browser:
    create or replace procedure Hello( cName varchar2 DEFAULT NULL ) is
    begin
    htp.prn( 'Hello World from '|| NVL(cName,'Nobody') );
    end;Make sure the Oracle user you configured the DaD with has exexcute rights on this procedure. E.g. if the DaD uses Oracle user WEB_USER to connect to the database and the procedure is created as SCOTT, then SCOTT must grant execute rights on the proc to WEB_USER.
    The web browser URL for calling this stored proc will look as follows:
    Without passing any parameters:
    http://yourserver/dad/scott.hello
    With passing the cName parameter as defined in the stored proc:
    http://yourserver/dad/scott.hello?cname=John
    As for the rest - you likely will need to use cookie authentication to "login" from a web page. Then you also need to determine just how you are going to use these session cookies on the database server side for security. How you're going to manage these cookies. Persist them in the database. Which also means managing session states for stateless clients via such a session cookie. Etc.
    This is not trivial to design, code and implement.
    Why not use Oracle Application Express instead?

  • Automator and saving photos from web

    Hi. I have a little problem with create automator script. Every day I browise many photo gallery. I open a lot photos in tabs on my Firefox 3.5. I wonder if exist any way to create automator script who can save all this photos opening in tabs on my desktop or custom folder.
    If this is possible? maybe someone have already working this script. if not how create this thing?
    Thank for help.

    Offhand, I'm not sure how to do it, but it certainly seems like it should be doable. However, I think there is going to be some roadblocks if you are using Firefox.
    Automator depends on actions to interact with specific applications, because it is meant to automate the tasks of those specific applications. So, that means it would be best to have Automator actions made for use with Firefox, and such actions would typically come from the developers of Firefox. I don't think this has happened yet.
    Usually, the actions are included within the application and Automator will automatically know about them. However, sometimes developers will release actions that can be installed afterwards, so if you don't see actions in Automator for Firefox then you should check with Firefox's developers just in case.
    If the developers for Firefox have not written any Automator actions yet, then the second thing to look for is AppleScript. Application developers for Mac programs are expected to make their applications scriptable with AppleScript. However, once again, I doubt the developers of Firefox have done this either, but you could check with them just in case. My doubts don't mean much since I don't currently use Firefox, but I have not known Firefox to ever be well integrated with Mac OS X like a Mac application should be.
    You can open Script Editor in the AppleScript folder of the Applications folder. (Just use the Spotlight search field in the upper right corner of the menu bar, and type the name Script Editor, and note that it's two words.) Then you can try to open Firefox's AppleScript dictionary from its File menu. If Firefox isn't listed in the window that is presented, you can select the "Browse…" button in the lower left corner of the window and find it that way. However, in that case, it'll probably tell it isn't scriptable, but it's worth a try anyways.
    Failing those two options, Safari does have Automator actions written for it, and Safari is scriptable with AppleScript. So, you might end up using Safari to do your daily browsing if you do find a solution to this. Either that, or maybe the developers of Firefox will be inspired to make their browser into a real Mac application by making it more accessible to automation. That won't happen if nobody encourages them, so consider contacting Firefox's developers and putting in a request for automation on the Mac, and in what kind of tasks you'd like to do.
    Even if it does turn out that they are working on it, tell them anyways so they know someone else is interested in it. Either way, you may end up using a solution with Safari in the mean time. If for some reason you don't like using Safari, you might consider looking into other web browsers written for the Mac that take their development for the Mac more seriously if it turns out Firefox's developers are not. Good luck.

  • Safari, and world leaks from web frame objects

    hello,
    I'm using tiger 10.4.10, and safari 2.0.4. Whenever I close out my windows in Safari, I get an error message saying that a world leak has been identified and that the cause as I understand it, is from 2 web frame objects. After searching these forums, I haven't found an answer, but have come to understand possibly 2 factors:
    1) yes, check for world leaks in safari is "checked"
    2) in safari 3, there is no such thing as world leaks?
    My question is this, I've never had a security breach before on my mac, how do I get rid of these world leaks? If I am to download safari 3, will it take care of my problem?

    Hi Jmds and welcome to the forums!
    the cause as I understand it, is from 2 web frame objects
    I think that is correct. Safari 3 uses a different webcore which also affects Mail, iTunes and other applications. This why it is vital that you do NOT delete Safari 2 before installing it. The Safari 3 installer does this for you, and in such a way that the UNinstaller that comes with the download will revert you to Safari 2 if you decide to change your mind.
    In safari 3, there is no such thing as world leaks?
    Merely answering 'No' would probably be tempting fate, but put it this way: since using Safari 3 I have not experienced any (not one) world leak.
    how do I get rid of these world leaks?
    All you need to do is close Safari, and they are gone.
    If I am to download safari 3, will it take care of my problem?
    Well, it worked for me! I still have 'check for world leaks' checked in the debug menu, but have never seen one in Safari 3.
    I word this with care, but Apple have said that a final non-beta version of Safari 3 for Tiger will be forthcoming. Now that Leopard has been released, I would think that Safari 3 for Tiger is due in the near future (just my opinion, hosts!), in which case you might as well wait for this final version.
    Safari 3.0.3 beta has been much faster and more stable (for me) that Safari 2 ever was. Hopefully that will be your experience as well.

  • Add and remove fields from web service desk

    I want to customize the screen for the web service desk. I would like to remove the fields for processor as well as the field for category. I would like to replace those fields with Geographical Location and Telephone number. How can i do this?

    Hi,
    In REST we cannot pass arrays like this:
    String catRefIds[] = new String[1];
    catRefIds[0] = "12345";
    map.put("catalogRefIds", catRefIds);
    This will never work.
    Had done a similar implementation. The thing I did was, I wrote a logic that accepts comma separated catalogRefIds and converts it to individual catalogRefId and populate the list.
    Regards,
    Rahul

  • How to copy and paste text from web in safari

    would like to copy and paste selected text from websites while in safari to my ipages.

    Quickly double tap on the screen that you want to copy. When you see the blue area pop up drag the edges of the blue block to the portion you want to copy. Tap copy.
    Next open something like "Notes".
    Open new document.
    Double tap and a "paste" option will pop up.
    Click paste and your selection will appear.
    You can then edit, save, etc.

  • How to use the G/L Accounts, COA and related transactions from the SDK?

    Hi all
    Where can I find more documentation or examples on how to manipulate the G/L Accounts? 
    Does SAP makes journal entries automatically from an User Defined Table, Form or Field?
    If I indicate an account to my table, how does the amounts entered in the amount column get reflected on the G/L Account?  Do I have to run a query that enter the information into the G/L Account?  
    And if so, by running an update/insert query to the G/L accounts table does my add-on provokes losing SAP support over the clients data?

    Hi Neftali,
    I got simple answer.
    Where can I find more documentation or examples on how to manipulate the G/L Accounts?
    -> DTW is a great example. And you can find the APIs in SDK help file.
    Does SAP makes journal entries automatically from an User Defined Table, Form or Field?
    -> Nope. User Defined something can't make any automatic journal posting, I guess.
    If I indicate an account to my table, how does the amounts entered in the amount column get reflected on the G/L Account? Do I have to run a query that enter the information into the G/L Account?
    -> I can't understand this question. Can you explain more?
    And if so, by running an update/insert query to the G/L accounts table does my add-on provokes losing SAP support over the clients data?
    -> Yes. (Sure.)
    Regards,
    Hyunil Choi.

  • Is it possible to animate videos and images coming from web service.

    i am calling a webservice. from that i am getting response. in that i have images and videos. i took those in an array. Now i need to animate those array values. just like animating images. So please tell me is it possible to animate videos are not. if yes how?

    Then, if it's not self-powered and you don't have a USB hub to power it, it's impossible.
    If you DO have a hub, give it a try. If the HDD is formatted in FAT32 or other, iOS-friendly formats (NOT NTFS!), you may be able to import videos / pics from it so that you can access them as imported media files.

  • How to get and use connection from Web AS 7.0 pool?

    Hello!
    I've set up a datasource and connection pool in my Web AS according http://help.sap.com/saphelp_nw70/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm
    And I have some questions about using connection pool:
    1) here is my code which get connection form pool:
    InitialContext ctx = new InitialContext();
    DataSource datasource = (DataSource) ctx.lookup("jdbc/IndexesDataSource");
    Connection con = datasource.getConnection();
    return con;
    Does it properly?
    2) Which method I should call when I need to pass connection back to the pool? Will it be enough to call con.close()?
    regards, Lev

    Hi Lev,
    Write code like this
    try{
    InitialContext ctx=new InitialContext();
    DataSource ds=(DataSource)ctx.lookup("jdbc/indexsDataSource");
    Connection con=ds.getConnection();
    Statement stmt=con.createStatement();
    con.close();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
    also have a look at below links[Link|http://help.sap.com/saphelp_nw04/helpdata/en/61/fdbc3d16f39e33e10000000a11405a/frameset.htm][Link1|http://help.sap.com/saphelp_nw04/helpdata/en/46/ddc4705e911f43a611840d8decb5f6/frameset.htm][Tutorial|http://help.sap.com/saphelp_nw04/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm]
    Regards,
    Krishna kattu

Maybe you are looking for

  • External Blu-Ray drive for HP Envy Lightscribe Issues

    My HP Envy 13-1100ea came with an HP external Blu-Ray drive (HP Part No: 538333-001) which identifies itself as an Optiarc  BD ROM BC-5600S. In the HP Envy 13 service manual it mentions this drive as having Lightscribe functionality but I cannot seem

  • Additional Application Server on SAP R/3 4.7

    Hello Guru's, We are running on SAP R/3 4.7 ext 2.0 with Oracle 9.2.0.4 on Solaris 5.9 OS. We are having separate Application Server and DB server installed. Now I want to add one more application server on Windows Server which will communicate with

  • DVD won't play in PC DVD drive.

    I know this message board is full of questions like the one I am about to ask. But I am working on a project for school due in the morning and i am having a problem. So bear with me. I am completely new to DVDSP. I made a project in FCP and exported

  • Error in processing the Output Type ZEML

    Hello,    For the Purchase order , i have configured the output type  ZEML in nace with medium as 'Simple Mail'. But when i process the message for ZEML in ME29n , it gives a n error saying '   Please maintain an output device in your user master dat

  • Fireworks Trial is VERY slow

    I just downloaded the Fireworks CS3 30 day trial as I need to get some software on my computer for web designed images. The program opens fine and opens all images without any difficulty, but certain tools such as the paint brush, magic wand, eraser,