on 03-15-2006 8:34 AM
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.
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
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.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.