Skip to Content
avatar image
Former Member

WebDynpro with Spring and Hibernate

Hello everybody,

I'm new in WebDynpro development,

but I successfully created my first application

with this technology.

Now I want to access a database with my application.

I decided to this with Hibernate and Spring,

because Spring handles the Hibernate sessions automatically.

In a normal web application I can configure corresponding filters, listeners and

context parameters in the web.xml

for the usage of Spring with Hibernate.

How can I do this for a WebDynpro application?

There isn't a web.xml for this configuration.

Perhaps you have an idea how to access a database via Spring and Hibernate in a WebDynpro application.

Thank you very much for your advice.

Greetings

Anton

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 10, 2006 at 11:27 AM

    Anton,

    It will be quite hard.

    You may not declare own servlet filters or listeners with WebDynpro.

    Even worse -- there is no way to intercept start of request (the end of request is call to wdDoPostProcessing on component controller of "main" application component)...

    VS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 10, 2006 at 10:35 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Mukesh,

      thank you for your information,

      but the documents are only discussing

      a normal web application with JSP pages not a WebDynpro

      applcation.

      My problem is how to integrate Spring and Hibernate

      into a WebDynpro application.

      Perhaps somebody knows how to do this.

      Greetings

      Anton

  • avatar image
    Former Member
    Dec 07, 2006 at 11:26 AM

    Hi Anton,

    You can use the Spring + EJB integration to bootstrap your Spring configurations when running the Web Dynpro app in SAP Web AS.

    More information on how to integrate Spring and EJB at http://www.springframework.org/docs/reference/ejb.html

    Best regards,

    Jojo

    Add comment
    10|10000 characters needed characters exceeded