Its all depends how do you configure your data-source.xml file.
Use the following example
<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://www.orionserver.com/dtds/data-sources.dtd">
<data-sources>
<data-source class="com.evermind.sql.ConnectionDataSource" location="jdbc/VoicePublishDS" connection-driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:oci8:@mydb" password="scott" username="tiger" name="Oracle8i"/>
<data-source class="com.evermind.sql.OrionPooledDataSource" location="jdbc/VoicePublishDSPool" inactivity-timeout="3600" max-connections="30" min-connections="5" source-location="jdbc/VoicePublishDS" name="Default data-source" max-connect-attempts="3"/>
</data-sources>
In your application.xml include this data-sources.xml.
Kesav Kumar Kolla
Voquette Inc
650 356 3740(W)
510 889 6840(R)
Voquette...Delivering Sound Information
-----Original Message-----
From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 10:13 AM
To: Orion-Interest
Subject: DataSources..how to get servlets to work with them?
Ok..I read the OrionSupport and did as it says. It appears that this works:
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/MyDS");
The problem is, when I try to get a connection from the datasource, its
telling me I am using an invalid user and password. But, it is the same
username and password we use via direct JDBC 1 calls in our own persistence
layer.
We are using Oracle driver, and hardcoded ips to the database. Any ideas?
