on 08-10-2006 11:25 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You search the information in Java Programming
see the Thread
See the help
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.