kartik!
url depends on driver class used.
piyush
Kartik Sudarsan wrote:
> i think the problem lies in your url. i have implemented datasource in my
> application using datasource and this is what my url looks like
> jdbc:oracle:thin:@sandstorm:1521:testdb
> here sandstorm is the name of the machine on which the database is
> and testdb is the global database name
>
> i hope this is of use to you
>
> Regards,
>
> Kartik Sudarsan
>
> IT Cube India Pvt. Ltd,
> Unit 1, 8th Floor,
> Innovator Building
> ITPL, Whitefield Road
> Ph:98450 74666
>
> Quality is a mindset,not an event
>
> -Original Message-
> From: JOEL VOGT [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 6:11 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie datasource Q
>
> Hi all,
>
> Hopefully this is an easy question for somebody.
> In my struts-config I have the datasource
>
> autoCommit="false"
> description="Access data source config"
> driverClass="sun.jdbc.odbc.JdbcOdbcDriver"
> maxCount="4"
> minCount="2"
> password="mypassword"
> url="jdbc:odbc:Rec97"
> user="myusername"
> />
>
>
> later on in a servlet I have
>
> javax.sql.DataSource dataSource = servlet.findDataSource(null);
> con = dataSource.getConnection();
>
> When I try to use this however, I get an java.sql exception :
> 'no data found'
>
> Anyone know how to fix this, do this proper? It works fine if I hard
> code in the database details.
>
> Thanks,
> Joel.
--
=
Piyush Raj Jain Phone:
Member Technical Staff, (Off):91-80-5584271
e-Governance & Digital Library (res):91-80-5341683
Centre for Development of Advanced Computing, (Fax):91-80-5584893
Banglore, INDIA.[EMAIL PROTECTED]
=