users@glassfish.java.net

Re: And yet another Websphere 5.x to Glassfish App Conversion - JDBC naming

From: <glassfish_at_javadesktop.org>
Date: Thu, 13 Nov 2008 21:06:31 PST

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