Hi all,.

I am getting the Following exception in my eclipse IDE

javax.naming.InitialContext is not supported by Google App Engine's
Java runtime environment

while using the Following code.

public static Connection openConnection(String jndi) throws
NamingException, SQLException {
                Context ct = new InitialContext();
                Context env = (Context)ct.lookup("java:comp/env");
                DataSource ds = (DataSource)env.lookup(jndi);
                Connection con = ds.getConnection();

                return con;
        }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to