Hi
I you have direct connection to data base then you can use
the JDBC driver for the data base that is in use (We have oracle).
But usually you have to go through the application server this mean you have to use "SAP Java Connector" that connect to SAP using RFC .
Talk to your basis people.
Regards.