Instead of java:comp/env/MyDB you can use java:db
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community