Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem accessing a Sybase DataSource

Status
Not open for further replies.

llecras

Programmer
Dec 9, 2002
1
FR
Hi,

I've got several application that use a Sybase Datasource, and for now each DataSource uses its own JDBCDriver (because the address and the port of the Sybase Instance are in the Driver Config ):

DataSource1

database-name: NAME
jdbc-driver-name: SybaseDriver1

SybaseDriver1

implementation-class: com.sybase.jdbc2.jdbc.SybDriver
Url-prefix: jdbc:sybase:Tds:hostname:port

I would like to use only one Sybase JDBC Driver for all the different DataSources, by moving the hostname and the port in the DataSource Config...

I tried something like that, but it doesn't work:

DataSource1

database-name: hostname:port/NAME
jdbc-driver-name: SybaseDriver

SybaseDriver

implementation-class: com.sybase.jdbc2.jdbc.SybDriver
Url-prefix: jdbc:sybase:Tds:

Does anybody have an idea?
Do you know if what I want to do is possible or not?

Thanks a lot,

Ludovic

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top