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
____________________________________________________________________________
_