cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro with Spring and Hibernate

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello,

so there is no chance to use Spring

in a WebDynpro application?

Greetings

Anton

Former Member
0 Kudos

Anton,

At least it's impossible to use Spring in unbotrusive manner: you have to explicitly bootstrap Spring interceptors from action handlers and tear-down them in wdDoPostProcessing.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hello,

sorry for the delay.

These are not the best news.

Thank you very much for the information.

Greetings

Anton

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

You search the information in Java Programming

see the Thread

See the help

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73af6078-0801-0010-8fa1-dea...

Kind Regards

Mukesh

Former Member
0 Kudos

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