on 01-02-2009 6:34 AM
Hi all,
i want to know about all the options of connecting to sql database from webdunpro application and their comparisons of advantage and disadvantages.
got answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi all,
actually i have created a dsn in VA and using this DSN i am connecting to database....but i want to chk that craeting a dsn and connecting database is good practice or any other way is good practice....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi anup,
i have gone through this link before also ...i just want to know for connecting to sql by simple webynpro application what are the ways and what is advantage and disadvantage over each others....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Case1:
You create a method in component controller and directly write the code to connect to the sql data base, execute the query and get the result state.
Case2:
in this case create a saperate java project, in that write a method which connects to the data base,executes the query and returns the result.
Now expose this function as webservice and use it in webdynpro as a Adaptive webservice mode.
In case 2 the backend is completely abstracted from the UI
Hi Saifee,
You can connect to sql directly from webdynpro or by consuming services which inturn connects to the database.
The usual good practice is to opt to the second option.
You can have a CAF application service or a plain java class exposed as a service for establishing connection and to manipulate data from and to database. Then you can consume this service in your webdynpro. This creates a layer of abstraction and separates backend from UI.
Hope it helps you.
Regards,
Srinivasan Subbiah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.