Skip to Content
avatar image
Former Member

Example for WebDynpro using EJBs

Hi,

is there an example for web dynpro programming using EJBs

for business logic available?

We have moved an existing EJB from another application server to WAS and want to develop a new frontend using web dynpro.

I found the tutorial "Creating a J2EE Based Car Rental Application.pdf", but there i only found an example using JSPs / servlets.

Regards,

Claus.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 27, 2004 at 06:42 PM

    Hi Claus,

    common practice so far is to create a WebService from the EJB and to import the WS into a Web Dynpro project. Of course this does only work, if you have the EJB(s) available at design time also. AFAIK there's no explicit tutorial for direct EJB usage available yet.

    In the future it might be possible to define the EJB(s) as Service Entities in the Composite Application Framework (CAF) Designer and use/import these models in(to) Web Dynpro. But so far the CAF designer only exists as internal version.

    Hope that helps.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I also agree with Matthias. It is unneccessary to use a web service to access an EJB. Could you please show an example of how to call the ejb, pass data to the ejb, retrieve the data from the ejb, and then add that to a model in the web dynpro? This would be very helpful.

      Thanks,

      Dustin

  • avatar image
    Former Member
    Aug 16, 2004 at 05:30 AM

    Look at this thread:

    accessing-session-bean

    There is a step-by-step guide on how to call an ejb from within a web dynpro application.

    Regards

    Dov

    Add comment
    10|10000 characters needed characters exceeded