File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Problem connecting a Sybase DataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Problem connecting a Sybase DataSource" Watch "Problem connecting a Sybase DataSource" New topic
Author

Problem connecting a Sybase DataSource

ludovic lecras
Greenhorn

Joined: Dec 09, 2002
Posts: 3
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</database-name>
<jdbc-driver-name>SybaseDriver1</jdbc-driver-name>
SybaseDriver1
<implementation-class>com.sybase.jdbc2.jdbc.SybDriver</implementation-class>
<url-prefix>jdbc:sybase:Tds:host ort</url-prefix>
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>host ort/NAME</database-name>
<jdbc-driver-name>SybaseDriver</jdbc-driver-name>
SybaseDriver
<implementation-class>com.sybase.jdbc2.jdbc.SybDriver</implementation-class>
<url-prefix>jdbc:sybase:Tds:</url-prefix>
Does anybody have an idea?
Do you know if what I want to do is possible or not?
Thanks a lot,
Ludovic
 
GeeCON Prague 2014
 
subject: Problem connecting a Sybase DataSource