users@glassfish.java.net

Re:Problem with glassfish jdbc connection pool -apparently jndi

From: xuqingkang2 <xuqingkang2_at_163.com>
Date: Wed, 21 Oct 2009 09:23:39 +0800 (CST)

How did you initial the JNDI Context,I think you should init JNDI Context like following.
"java.naming.factory.initial" should be specified glassfish's initialContextFactory;

Can you try it...
----------------------
    Properties env = new Properties();
    env.setProperty("", "");
    env.put("java.naming.factory.initial",
            "glassfish's initialContextFactory");
    try {
        Context jndiContext = new InitialContext(env);
        jndiContext.lookup("you source name");