Link to home
Start Free TrialLog in
Avatar of siddharthkool
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.
Avatar of for_yan
for_yan
Flag of United States of America image

Looks like a detailed explanation of how to connect to Sybase:

http://www.sumedh.info/articles/java-jdbc-sybase.php
Avatar of siddharthkool
siddharthkool

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.
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/manipulate with  data in database ?
That's waht I though based on the second part of your question.
Or is it something else?

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
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
solved