On Today, Nick Newman ([EMAIL PROTECTED]) wrote:
> Hi Gary,
> 
> The JNDI name should be "java:comp/env/jdbc/OracleEJBDS" - you missed the
> "env".
> 
> Odd thing about the com.evermind.sql.ConnectionDataSource class.  I assumed
> it would be in the orion.jar, but I don't see it there.  Perhaps something
> to do with the obfuscation technique that they use?
> 
> Nick

Ah yes, the infamous orion obfuscation technique, which,
coupled with ignorance, has been known to be downright dangerous!

I actually ran a foreach over all the jars in the orion directory
searching for ConnectionDataSource, and never found it.  Pretty
weird.

Anyway, I sure hope the lack of 'env' is all that's wrong... should
I see an 'env' JNDI Context when listing 'java:comp'?  And
a 'jdbc' Context when listing 'java:comp/env'?  I tried
both of those things today... I'm only fishing for ideas
because from home I can't access the machine with the test
stuff on it...

Thanks!

        Gary

> 
> At 04:29 PM 10/6/00 -0600, you wrote:
> >I have set up the data-sources.xml file using Oracle, following the
> >advice of Magnus R. at orion, the result looks like:
> >
> ><?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"
> >         connection-driver="oracle.jdbc.driver.OracleDriver"
> >         connection-retry-interval="1"
> >         ejb-location="jdbc/OracleEJBDS"
> >         inactivity-timeout="30"
> >         location="jdbc/OracleDS"
> >         max-connect-attempts="3"
> >         max-connections="100"
> >         name="oracle-inst1"
> >         password="change_on_install"
> >         pooled-location="jdbc/OraclePooledDS"
> >         schema="database-schemas/oracle.xml"
> >         url="jdbc:oracle:thin:@localhost:1521:inst1"
> >         username="sys"
> >         xa-location="jdbc/xa/OracleXADS"
> >     />
> ></data-sources>
> >
> >With this data-sources file I don't even have a java:comp/jdbc
> >Context, much less the right entries.  I am unable to verify
> >that a class named ConnectionDataSource even exists.
> >
> >Magnus said to use the jdbc/OracleEJBDS source for connections,
> >claiming they would be automatically pooled.  So far I'm not
> >getting anywhere!
> >
> >Ideas?
> >
> >     Gary
> >
> 
> 
> 



Reply via email to