cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro vs Oracle

Former Member
0 Kudos

Hello to all!

I am developing a simple component to bring data from a Oracle Database to a Web Dynpro tableView. My main doubt: Is it necessary to include in the EJB a method getConnection that returns a connection of the defined DataSource and other one that executes the query or is it enough having the table created in the Java Dictionary.

Greetings and thank you very much in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

In ur Webdynpro application, if u want to create a table and get the value from the oracle data base, u have to create a connection in the implementation of ur webdynpro application itself.

1) First Create a table in the dictionary by giving the column names.

2)Then get the connection to the database and insert into the table using the executeUpdate method.

try{

InitialContext ctx=new InitialContext();

DataSource ds=(DataSource)ctx.lookup("jdbc/SAPJ2EDB");

Connection con=ds.getConnection();

}catch(Exception e){

}

Regards

Vijayakhanna Raman

Former Member
0 Kudos

I have the same issue. I need to launch a select on a table in Oracle DB using WebDynpro, but I haven't find tutirial or documentation on this.

Please, any help will be appreciate.

Vipa

Former Member
0 Kudos

Nobody's bonna try to help me?