on 06-20-2007 3:22 PM
Hi All,
<b>Humble Request:</b> Please dont misguide me and looking for expert solution.
I want to connect Oracle Database display data in the WebDynPro.
I searched in the forum, I didnt find any best/easy way to connect to Oracle DB.
Followed This below Thread
I had experience with Adaptive RFC Models.
My application requirement is Fetch/Insert data from Oracle Database.
I dont want to Use EJBs. at all .
<b>Planning to do</b>
1) Java class for DB Connection
2) DAO (Manipulations like select,insert and upadate)
3) DTO for each every database table setter/ getters
<b>My Doubts</b>
1) Is the above approach correct? <b>suggestions/advices required</b>
2) <b>When JavaBeanModel Come in to the picture in case of connecting Oracle Database</b>3) What is the best practice?
Thanks in advance
Regrds
Willams
<b>Hi
Check this URL
General
http://help.sap.com/saphelp_nw04/helpdata/en/a5/55ecf8fc6c11d28e610000e816c2ff/frameset.htm
For Oracle
http://help.sap.com/saphelp_nw04/helpdata/en/52/8271403017587ee10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/4c/5f70403590ca01e10000000a155106/frameset.htm
Regards
Chandran</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AW,
One way is creating EJBs.Please refer to the threads below for that
https://forums.sdn.sap.com/click.jspa?searchID=2936002&messageID=1082087
You can create a javabean and you can import that as a model .
Check the following project which will generate javabean (MaX DB)
This project will generate a javaben out of the tables in MAXDB.
You can follow any one of the above.
Regards,Anilkumar
SS,
No need to import the project into NWDS.
You can run that .jar from outside by providing parameters (provided in the help file of the project).
Basically this project will connect to your database and generate Java classes for each table and it will bundle all the classes into .jar file.
This .jar file you can use it while importing the model in webDynpro application.
Regards,Anilkumar
Hai ADAM,
If you see the Bat file DBrun.bat
set classpath=%classpath%;<b>c:\GenerateJava.jar</b>
java -D com.sap.test.DBTest <b>TSP SAPJ2EDB ADMIN TSP</b> c:\GenerateDB TSPAGE
here
Databse DriverName =TSP
Databse UserName = SAPJ2EDB
Databse Password = ADMIN
Databse Pattern =TSP
OutputLocation = c:\GenerateDB
Datasource name =TSPAGE
By using this you need to give the location of GenerateJava.jar or copy it into c:\
and you need to provide Data source Name instead Of TSPAGE
I cheked thi with my MaxDB Database, its worked.
Regards,
Naga
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.