Webdynpro java and EJB integration

Hi,
I am new to Webdynpro Java, would require your help in the following area:
my requirement is I need to read values from oracle database using EJB/Java Beans and display the same using webdynpro JAVA(as user interface).
Pls suggest the possible solution with required docs & videos(if possible)
FYI:
Tools: NWDS 7.0, SAP portal 7.3
Thanks
Nag

Hello Nag,
there are two possibilities to use your ejb in WD4J:
1. Via JNDI Lookup
  try {
        InitialContext ctx = new InitialContext();
        <YourEJBInterface Class> service = (<YourEJBInterface Class>) ctx.lookup(<JNDI-Name>);
  } catch (NamingException e) {
        throw new RuntimeException(e);
2. Via EJB Model:
here a guide --> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d2638c-4b04-2d10-d2a3-992fdf1e3d55?quicklink=index&…
hope this helps.
Regards
Tobi

Similar Messages

  • Webdynpro java and oracle DB connection..

    Hi,
    I have a good knowledge of WD (web dynpro java) projects having ECC as backend as i have done lot of projects where ECC is backend and WD JAVA is front end.
    but in my new project i have wd java as front end but my backend is oracle DB. I want to know how to create/setup  connection betwen webdynpro java and oracle DB, how to proceed on this ? wat all settings I have to do in VA (visual admin) and all.
    please let me know how to proceed on this. Any document/tutorial on this will be very helpful..

    Hi Rahul,
    Create a DataSource to the oracle db in Visual Admin, give the datasource an alias name and connect to the db from WebDynpro by calling the alias name.
    These document might be useful:
    [http://help.sap.com/saphelp_nw70/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm]
    [SAP Note 867176|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=867176]
    [SAP Note 941594|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0000941594&nlang=E]
    Good luck!
    Regards,
    Aditya

  • Comparision matrix of Webdynpro Java and Adobe Interactive form

    Hi Experts,
    In our project we have to choose the GUI between Webdynpro Java and Adobe Interactive forms. Can anyone help me out with strong comparision parameter's in order to select the right technology.
    Thank you in advance.

    Hi ,
    Depends on your project requirement : if you project is simple and want to use  less UI controls  then use Adobe Interactive Forms (AIF).
    But In your project needs large number of UI controls and to show huge amount of data then best option is  Web Dynpro Java.
    Web Dynpro provides wide varieties of UI controls for designing your web application . Adobe Interactive Forms have limited controls .
    Web Dynpro take care of your Client side eventing which is not possible in AIF . AIF Developers needs to know Adobe scripting too.
    If your Client data is huge AIF take so much of time to render your content and also this depends on your reader version installed on the end user too . Web Dynpro Java is Client neutral & it won't take much time to render the content.
    Use AIF  to show/process Business data in any Web application. ideally it is not suited for complete GUI of your project  .
    Regards,
    Rakesh Kumar

  • Webdynpro Java and Webdynpro ABAP

    hi all,
    Im working in webdynpro java. Im confused about WD java and WD ABAP. which one we should select for what? And now a days people are telling that SAP is coming up all business packages in WD ABAP. Is it true? Which one is better either WD Java or ABAP?
    Thanks,
    J.Smitha.

    Smitha,
    It's tough question to answer. Which one to choose either Web Dynpro java or Web Dynpro ABAP , it depends on which technology you are comfortable. In relation to the business packages SAP already provided allmost all of them in java and in the future all the Business packages also available in ABAP. It's all how you want to develop the application. In sap portal world some applciation which we can develop with ABAP Web Dynpro and some applications with JAVA Web Webdynpro as SAP Web AS available as dual stack.
    If someone already has a strong ABAP background and has WD for ABAP available they should probably use that. If they are a J2EE developer they should probably use WD for Java but it is likely they will also then need some ABAP support for the backend systems.
    I think more customers may be asking for WD for Java projects simply because it has been around longer and is more widely available to customers where as some cutomers prefer to develop their application using ABAP Web Dynpro because of SAP propritary. But ultimately it's again all our interest and customer.
    Thanks
    Krishna

  • Connection between webdynpro java and ECC.

    Hi experts,
    I am very new to webdynpro java, I want to learn webdynpro java since I know little bit of java.
    So here is my question,
    I want to connect my webdynpro java to ECC  to get data from ECC and display it on front end and as well i want to send data to ECC, can anyone help me to resolve this one.
    Thanks and Regards,
    Santoshkumar.

    Hi Santosh,
    This is pretty basic stuff in the world of Web Dynpro Java - I'd suggest you search SCN, read content on help.sap.com and then come back here with more specific questions.  All anyone can do to answer your current question is search for you and post links to documents that you could find for yourself.
    Cheers,
    G.

  • Webdynpro Java and ESS/MSS

    Hello,
    It has been a rumour for a long time and now it seems that SAP will convert all ESS/MSS services into Webdynpro ABAP....so i want to know what's the plan for Webdynpro Java ...? what areas will it be used...? and what are the options for Webdynpro Java Developers....? ...one thing for sure is to learn Webdynpro ABAP...
    Regards,
    Anil

    As far as I know, SAP has changed travel management and HR administraor from WDJ to WDA as of EhP1.
    Do you have any ideas about any other BP?
    Actually, I wonder SAP has been developed any new BP based on WDJ after EhP is introduced.

  • Break Point in Webdynpro JAVA and SAP

    Good Morning.
    I am creating a development for web dynpro Java using Function Module RFC in ABAP.
    I want know how can put a break point in the system SAP ERP (Backend) and run an application in web dynpro java?
    I did this steps:
    1.) SE37--->name RFC
    2) button Display
    3) Set/Delete external Break point.
    4) In the SAP Netweaver Developer Studio >Name of project>Webdynpro>Applications>Name Appplication-->deploy new archive and run.
    But this not stop.
    The question is :
    How can do this?
    Kind Regards

    Hi,
    Refer this article: [Debugging ABAP Code from within Web Dynpro Application|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30&overridelayout=true].
    I hope it helps.
    Regards
    Arjun

  • WebDynpro java and Oracle Connection

    Hi,
    I'm trying to make a simple connection to an Oracle database within a custom webdynpro component. Using NWDS 7.0.08 and EP 7.0 SP 10.
    Here is a sample of the java code I use :
    Connection conn = null;
    Class.forName("oracle.jdbc.driver.OracleDriver");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn =DriverManager.getConnection ("jdbc:oracle:thin:@hostname:port:DATABASENAME","schema", "password");
    Statement stmt=conn.createStatement();
    ResultSet rs=stmt.executeQuery("select * from MYTABLE");
    But when I run this WebDynpro, the following error appears :
    "oracle.jdbc.driver.OracleDriver".
    I have also catched the exception stack but it doesn't seem meaningful. If you need it, I can provide it in another thread.
    So What should I do to connect to this oracle database ? Is it the right provider ?
    Thanks,
    Loïc LEVEUGLE

    Hi!,
      please try following code, this is working fine for me.
    String  serverName = "172.21.1.62";
    String portNumber = "1526";
    String sid = "vision";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String userName = "scott";
    String password = "tiger";
    Connection connection = null;
    try {
        // Load the JDBC driver
        String driverName = "oracle.jdbc.driver.OracleDriver";
        Class.forName(driverName);
        connection = DriverManager.getConnection(url, userName, password);
        Statement stmt =connection.createStatement();
        PreparedStatement pstmt = connection.prepareStatement("insert into club (Name,EmpID,Location,Extention,MailID,InstPlay) values(?,?,?,?,?,?)");
                   pstmt.clearParameters();
        pstmt.setString(1,Name);
        pstmt.setString(2,EmpID);
        pstmt.setString(3,Location);
        pstmt.setString(4,Extention);
        pstmt.setString(5,MailID);
        pstmt.setString(6,Instrument);
        pstmt.executeUpdate();
    } catch(Exception exc) {
         exc.printStackTrace();
    put classes12.jar in your class Path.
    regards,
    Mithileshwar Sahu

  • Javascript future in Webdynpro (JAVA and ABAP)

    Hi WebDyn Pro's,
    I see many sophisticated capabilities enabled inside Webdynpro for JAVA from use of Javascript.  Further, in many cases, Javascript provides the only solution for the requirements!
    From this forum, I think I hear that Javascript capabilities may be disallowed in future WebDynpro releases by SAP. 
    I have 3 questions related to this:
    1. Why would SAP want to disallow usage of Javascript inside WebDynpro applications?  What is the harm?
    2. Does SAP think that customers should be able to provide these same capabilities without use of Javascript?
    3. Will this same Javascript limitation exist in WebDynpro for ABAP?
    Thanks,
    Kevin

    "Many sophesticated capabilities enabled inside Webdynpro for JAVA from use of Javascript." - that is true
    1. It is to have a standard for development inside, and outside SAP. Otherwise developers will use ... who knows what they will develop... and there have been quality problems in projects that SAP has to deliver - SAP has 30,000 employees, any of whome can develop in their free time. With the current framework, all these issues have been taken into consideration.
    2. SAP and the Webdynpro development team in Walldorf will continue to enhance the webdynpro framework in the forseeable future. There is an alternative if you want to use Javascript. Please use Java Dyn Pages for unlimited java script coding. This can be seen in Portal Development Manual. http://help.sap.com/saphelp_nw04/helpdata/en/fd/01f34026d70b06e10000000a155106/content.htm
    3. Yes it will apply in ABAP. WebDynpro is the common framework that is used for both ABAP and Java. It Java/ABAP independent "so" to say. But it works better with Java right now than ABAP.
    Sumit.

  • Start both Webdynpro JAVA and WebDynpro ABAP from UWL

    Hi all:
    We are facing a situation. We need to start both JAVA dynpro and ABAP dynpro applicaiton from uwl. The JAVA dynpro application is the ESS absense request. And we also developed other workflow which use ABAP dynpro as work item . The problem is when we regist our ECC system to UWL, the system can only provide  WAS java information or WAS ABAP. So there are alway one type of our work items can't start correctlly. How can I modify the UWL configuration to meet our requirement?
    Anyone knows please notify, thank you very much!
    Wayne

    Hi,
    when you try to register backend system , you will choose system alias which was already existing in the portal which has WAS hostname and port.
    that is sufficient. Based on visualzation parameters , you can launch webdynpro abap/java tasks.
    check below article
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf
    Regards,
    Koti Reddy

  • Java and EJB Skills

    Hi Everybody,
       I know we need to know little to bit of Java for Java Mapping. Do we also need to know EJB for any reason? What is the skill level or how deep we need to knwo about EJB. Is there any document or thread which gives some info.
    Thanks you.

    Hi sonia,,,
    Stefan is absolutely correct..
    Java mapping and UDF coding just require simple java ....no EJB concept involved in tht...
    EJB concept is required for creating adapter modules ....
    Regards ,
    Sushil

  • RE;Difference between webdynpro java and Jsp Dynpage and Dynpages

    hi all,
    What are the befinits of webdynpro when compared with other
    Jsp Dynpage and Dynpage.

    Hi Mahesh,
    Refer to the following links which gives you the good idea.
    Choosing between Webdynpro and JspDynpage/Dynpage
    JSPDynpage  Vs Web Dynpro Java
    /thread/65254 [original link is broken]
    JSPDynpage  Vs Web Dynpro Java
    Thanks n Regards,
    Jhansi Miryala

  • Can't create EJB from existing .java AND ejb-jar.xml entries

    I've noticed that I can create the source files for an EJB outside of JDeveloper, then I can do the "Create Entity Bean" thing, and specify the path to the source files, and it will use those source files, instead of forcing me to create them again.
    However, I've noticed that if I manually add the information to the "ejb-jar.xml" file, and then try to add the bean, it won't let me. I've found I have to delete the entry from the ejb-jar.xml file and let JDeveloper control the creation of the fields, even if I know exactly what needs to be set.

    If you are adding/modifying ejb-jar.xml outside JDeveloper and trying to see the changes.
    Save the ejb-jar.xml file which is being modified externally
    Select ejb-jar.xml in JDeveloper
    and do View | Refresh
    This will load in the changes (providing the source path has been set properly)
    raghu
    JDev Team

  • WebDynpro (JAVA) and Internet Sales..

    Hello experts,
    I would like to know if there is a way to develop or extend Internet Sales through WebDynpro (for JAVA) instead of JSPs, if so.. could anybody point me the right direction how to accomplish that.
    Links, documents or whatever are welcome.
    Thanks in advance..
    JV

    Hi
    download these documents may help you
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50c7a90f-21a3-2910-87b5-e1f0e39462ae
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/59bea890-0201-0010-9683-cf0715c48912
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1c22cf90-0201-0010-92be-b6ef4c2df31c
    Reward if helpful
    Regards
    Manohar

  • Integrating ABAP workflow in WebDynpro java

    Hi Friends,
    I have a requirement from the client where I need to add some additional services (Functionalities) to the existing ESS application.
    1. The ESS package already contains many standard DC's such as for "Address","Who is Who" etc.Now I am adding a new functionality "Allowances" to that.
    2. I am not using FPM based development architecture to acheive the same.Instead the ABAP team has created a workflow ,so that the approvers in this "Allowance" service can get their approval in their UWL.
    3. Please help me in finding a sample code or let me know how do I do the same using webdynpro java and integrate it as a service in the standard ESS package.
    If anyone has got some documents pls share the same : meet.raj34ATgmail.com
    Regards,
    Ranjan

    Hello Giang,
    You will need at least a placeholder object. Have a look at ESS Leave request - WS12300111 - it functions exactly as per your scenario.
    Cheers,
    Mike

Maybe you are looking for

  • Report Performance Testing in BEX or Portal + process Chain testing

    Hi Guru, i am looking for a tool in BW where BEX reports or Portal reports can be tested. What i looking for is a possibility to log on virtual users (100.+) for a report and check how faster that report can be runned. It is a tool where i can test t

  • Error while converting Image -to- PDF and then to PDF/A

    Hi, I'm trying to convert a Image format(JPEG,bmp,tiff) to PDF and then to PDF/A. I could able to convert Image to PDF successfully. I'm getting the below error while converting the PDF(that was generated) to PDF/A. Caused by: com.adobe.livecycle.out

  • Reversing Picking at Line Item level

    Hello everyone In our system we have implemented ECC 6.0 with SD, WM Now when a Delivery Document is created from the Sales Order, auto picking is performed during the Delivery is saved. Thus a WM TO is automatically created when a Delivery Document

  • URGENT!!!!problems with servlets

    Hi there i am using Visual Cafe enterprise edition 4.5 to build a servlet that produces reports.From these reports the user has the option to display the results of the reports in the following graphic forms:pie chart and bar diagrams.I am using a pr

  • Wily Introscope

    Hi, We want to cofigure the Wily Introscope manager to monitor the MDM system from solution manager.Our solution manager4.0 is in patch 12 . Kindly let us know the steps for this. Best Regards, Prakash.