how to lookup datasource which is created in glassfish with some jndi/dbname name.
I am trying to get datasource writing code in a servlet like this
Datasource datasource = (Datasource)initialContext.lookup("jdbc/customer");
Connection con = datasource.getConnection();
but it is throwing NameNotFoudExcepion for this context .
how can access datasource created outside of tomcat that is in Glassfish
in our servlets....
Related Article:VB6 mysql database connection
is a solved MySQL discussion thread by Shodow that has 3 replies, was last updated 2 years ago and has been tagged with the keywords: connection, database, string, vb6.