Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SOS: how to obtain a JDBC connection in webdynpro?

i can get an connection of sybase driver with this way(coder in webdynpro implementation):



try {

DriverManager.registerDriver(new SybDriver());

con =DriverManager.getConnection("jdbc:sybase:Tds:","username", "password");

} catch (SQLException e) {




but i wanna obtan a connection by jdbc connector.

following i config it in visual administrator:

DataSource name: sy_DS;

DataSource aliases:sy_ds;

Dirver name:sybase_driver(a name of i 'd registered a sybase jdbc1(jconn.jar) driver );

JDBC version:1.X;

driver class:com.sybase.jdbc.SybDriver;

DataBase URL:jdbc:sybase:Tds:;

user: username



follow coder is in webdynpro implementation to obtain a connecton:


try {

Context ctx = new InitialContext();

DataSource ds = (DataSource) ctx.lookup("jdbc/sy_ds");

Connection c =ds.getConnection();


debug by step by step get a exeception here: ResourceException in method ConnectionFactoryImpl.getConnection(): SQLException thrown by the physical connection: Porting factory for ADAPTIVE SERVER ENTERPRISE database not defined.


} catch (NamingException e) {




Former Member
Not what you were looking for? View more on this topic or Ask a question