Skip to Content

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

How can i get DB connetion from myself datasource....

HI!

J2EE engine default datasoure is connecting to SAP DB,i want to use sybase ,when i create a new datasource ,how can i get the connetion of sybase db,if anyone give the step and java code wirtten in WebDynpro...such as :

Context ctx = new InitialContext();
DataSource ds =  (DataSource)ctx.lookup("mySybase");

if (ds==null) {
	throw new Exception("DataSource is null");
}

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