Martin,
   I have been using the following entry in
data-sources.xml with some success.

   <data-source
      class="oracle.jdbc.pool.OracleDataSource"
      name="Oracle"
      location="jdbc/devDS"
      ejb-location="jdbc/devDS"
      xa-location="jdbc/devXA"
      schema="database-schemas/oracle.xml"
     
connection-driver="oracle.jdbc.driver.OracleDriver"
      username="user"
      password="password"
     
url="jdbc:oracle:thin:@oracle.servana.com:1521:dev"
      inactivity-timeout="30"
   />

   The main difference is the format of the url and
the "class" entry.

Good luck,

Kris
--- Martin Dolog <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am new w/ Orion and I have the following problem:
> 
> I can't connect however it seems to be connected
> but when I want to call some method from Connection
> class
> (like con.getMetaData or con.createStatement) I just
> get
> exception: java.sql.SQLException: Io exception: The
> Network Adapter
> could not establish the connection

> My data-source.xml looks like:
> 
>         <data-source
>                
> class="com.evermind.sql.ConnectionDataSource"
>                 name="Oracle"
>                 location="jdbc/OracleDS"
>                 xa-location="jdbc/xa/OracleXADS"
>                 ejb-location="jdbc/OracleDS"
>                
> connection-driver="oracle.jdbc.driver.OracleDriver"
>                 username="scott"
>                 password="tiger"
>                
>
url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29"
>                 inactivity-timeout="30"
>                 schema="database-schemas/oracle.xml"
>         />
> 
> 
--- <snip> ----


__________________________________________________
Do You Yahoo!?
>From homework help to love advice, Yahoo! Experts has your answer.
http://experts.yahoo.com/

Reply via email to