1. The database pool module needs to be a dependency of your app.
2. when converted to a resource-ref, if the resource-ref-name is the same as the pool name (the name in the xml, not the module name) then you don't need any more mapping info. IIRC the resource-ref-name is the same as the name in @Resource(name="foo")
Hope this helps
----- Original Message ----
From: David Carew <email@example.com>
Sent: Wednesday, February 20, 2008 12:33:38 PM
Subject: Mapping annotation to an actual database pool in Geronimo
I have a database pool defined in the admin console and I want to refer to it in a Servlet or EJB via an annotation like the following
@Resource DataSource myPool ;
How do I map the variable myPool to an actual Database Pool in Geronimo ?