siddharthkool
asked on
How do i Implement Sybdatasource interface
Can i get the example of Sybdatasource implementation. Specially how to set up the basic-statndard connection using datasource.
This is similar issue discussed in EE:
https://www.experts-exchange.com/questions/20823149/java-sybase-JDBC-Connection.html
ASKER
@for yan: i want to implement a SybDataSource.java class using the methods given in the SybdataSource interface. I want to to do only the basic connection to the database no pooling or xa.
plz help.
plz help.
Hmm.. I would think that such class would already exist in the Sybase JDBC driver and it
would implement java.sql.DataSource. Unless you are writing a driver, as far as I understand,you would not need
to implement the DaaSource clas, you'd rather use those classes, which should exist in Sybase
JDBC driver.
I'm not so much familiar with Sybase, but this is how it workd with Oracle, I guess
the general paradigm is thesame for any database.
Is your goal to connect to database and use/update/insert/manipula te with data in database ?
That's waht I though based on the second part of your question.
Or is it something else?
would implement java.sql.DataSource. Unless you are writing a driver, as far as I understand,you would not need
to implement the DaaSource clas, you'd rather use those classes, which should exist in Sybase
JDBC driver.
I'm not so much familiar with Sybase, but this is how it workd with Oracle, I guess
the general paradigm is thesame for any database.
Is your goal to connect to database and use/update/insert/manipula
That's waht I though based on the second part of your question.
Or is it something else?
ASKER
Yes exactly i want to just see whether i can connect to database using datasource. i want to implement a SybDataSource.java in order to manipulate the data. Yes i have seen the .class file but i want to write the implementation code for SybDataSource. I would like to have source code snippet for basic connection using DataSource object for sybase. or how can i implement it??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
solved
http://www.sumedh.info/articles/java-jdbc-sybase.php