cancel
Showing results for 
Search instead for 
Did you mean: 

How can I retrive the JDBC deployed?

Former Member
0 Kudos

Hi Guru.

I have a question for you:

How can I retrive the JDBC deployed in a J2EE engine?

I need to populate a DropDown in a webdynpro with the JDBC driver deployed.

Is it possible?

Thanks

Manuel Chiarelli

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

maybe this helps


import java.util.*
import java.sql.*

....

Enumeration e = DriverManager.getDrivers();
	
while (e.hasMoreElements()) {
  Driver drv = (Driver)e.nextElement();
  System.out.println (drv.getClass().getName());
}

regards

franz

reward points if useful

Answers (1)

Answers (1)

chinmaya_sahoo
Contributor
0 Kudos

Hi Manuel

If you need to run the JDBC Driver in WebDyn pro app, then create a method in webDynpro app.

use this method for getting connection object & cal this method in <b>public void wdDoInit()</b> metod of webdynpro view.

use another method or create a java class for dropdown populate and then call this in wdDoInit () method after getting connection.

hope this will help.

Cheers

Chinmaya

Reward points for helpful answers.