I'm trying this for last two days.not able to sort it out.
while trying to set datasource for connection pooling i'm getting datasource
as null.

In Server.xml file , i have added this inside the context


            <Resource name="jdbc/source" auth="Container"
type="javax.sql.DataSource"/>

            <ResourceParams name="jdbc/source">

<parameter><name>user</name><value>name</value></parameter>

<parameter><name>password</name><value>password</value></parameter>

<parameter><name>driverClassName</name><value>oracle.jdbc.driver.OracleDrive
r</value></parameter>

<parameter><name>driverName</name><value>jdbc:oracle:thin:@3.209.92.15:1521:
database</value></parameter>
             </ResourceParams>

In web.xml i have added the following lines

<resource-ref>
  <description>connection pooling </description>
  <res-ref-name>jdbc/source</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
</resource-ref>

i have oracle jdbc class in the lib directory of tomcat.

can anyone please suggest me to solve this problem .i have already seen one
posted message reg this..but that doesnt solve my problem.




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to