on 03-10-2005 8:20 AM
Hi Guys,
How do I directly access the database using webdynpro? Thanks.
Hi,
Going by the MVC design pattern, it is not recommended to have database access logic in the WebDynpro component.
You should use an EJB or a JDO to access the database.
However, if you are keen on accessing it from Web Dynpro, then ideally in the wdDoInit() method of the controller you will do a JNDI look up for the Data Source and establish a connection and use this connection in the event handlers for making actual database calls.
Regards,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as one of possible approach you can try JDO:
<NWDS install path>\SAP\JDT\eclipse\examples\J2EE_GettingStartedJDO.zip
And to bind results you can use JavaBean model in dynpro.
Regards Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chia,
You can access the database either by creating an EJB or by just creating a JDBC connection.
Regards
Noufal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.