on 05-15-2006 10:41 AM
Hi,
I want to know if it ist possible to access the WAS Database over JspDynpage.
If yes, can someone post me a tutorial or the way how to do that?
Thanks and Regards,
Dennis
Hi Dennis,
U can create a connection and do datasource lookup and access the database.
InitialContext contx = new InitialContext();
DataSource datasource = (DataSource)contx.lookup("jdbc/SAP<SID>DB");
Connection connection = datasource.getConnection();
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery("Select * from table");
Also refer to this link for another example.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fe/68e343cc68414da4426258d3e896ae/content.htm
Regards,
Harini S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.