You can search the archives of the list if you go to
http://www.orionserver.com/, click mailing list and then click archives.
The answer to your specific question is "datasource.getConnection()", hope
it helps.

/Magnus Stenman, the Orion team

PS. You'll probably want to use a resource-ref when referencing the source
too, then the name becomes "java:comp/env/mySourceVariable".


----- Original Message -----
From: "Tamer" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, April 18, 2000 1:57 PM
Subject: mistake on datasource


> people, hello
>
> yesterday was posted a message explaining how to use data source.
> i got this mail from my house, and here on my job i would like try it.
>
> i can't remember the sintax. it seems like that:
> //.................................................
> javax.naming.Context context = new javax.naming.InitialContext();
> javax.sql.DataSource datasource = (javax.sql.DataSource)
> context.lookup("jdbc/DefaultDS");//myDatabaseinfo
>
> Connection con = (Connection)datasource;  // <<<< i can't remember
> Statement stmt = con.createStatement();
> ResultSet rs;
> //.................................................
>
>
> somebody could post me the referred message??
>
> thanks!
>
>
____________________________________________________________________________
_
> Tamer Americo - Conselho Federal de Medicina - CFM
> [EMAIL PROTECTED] - ICQ#3221276
>
> "When we are young / Wandering the face of the earth
> Wondering what our dreams might be worth / Learning that we're only
immortal
> For a limited time"
> Dreamline - Rush
>
____________________________________________________________________________
> _


Reply via email to