From: <forums_at_java.net>
Date: Fri, 24 Jun 2011 06:16:27 -0500 (CDT)
You have to define the datasource somewhere. In Tomcat this is done in
context.xml. In GlassFish you can use the admin console to define datasources
(among other possibilities). You first have to define a connection pool and
then use this to create a data source.