In Glassfish, a jdbc resource is created using the following command :
<install_root>/bin/asadmin create-jdbc-resource --connectionpoolid poolName jdbc/cbcweb
This could be created using the admin console as well. When you want to lookup the datasource, jdbc/cbcweb should be used. If you created a jdbc connection pool in glassfish, a jdbc resource should be created as well. Please refer
http://blogs.sun.com/technical/entry/lookup_from_standalone_client to lookup a datasource from a standalone application.
HTH.
[Message sent by forum member 'sm157516' (sm157516)]
http://forums.java.net/jive/thread.jspa?messageID=316703