cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of database in WbDynpro application

Former Member
0 Kudos

Hi ....

i Want to know how to use database in WebDynpro Application.is anyone have help topic related to this?any simple Tutorial?...

please help me..

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The soultion is simple.All you need to do is establish connection .

1. Create JDBC Datasource is VisualAdmin

2. Write the following to create connection.

public Connection getConnection() {

try{

Context ctx = new InitialContext();

DataSource ds = (DataSource) ctx.lookup("jdbc/<<DataSourceName>>");

con = ds.getConnection();

return con;

}catch(Exception e){

}

return null;

}

3. Use the above connection to get the resultset.

Regards, Anilkumar

Former Member
0 Kudos

hi...

Thanks for ur valuable help.I will Try to implement it...

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Please check this

Regards, Anilkumar