This should be add to the application.xml(not geronimo-application.xml), coz it is NOT Geronimo specific. It is the JEE specific.
> On Apr 30, 2009, at 6:51 AM, fmeili wrote:
> So..... geronimo is assembled out of plugins (e.g. your app becomes aHi David,
> plugin once deployed). The plugins form a directed acyclic graph
> (each plugin has a bunch of parents, and you can't have circular
> dependencies). When the deployer tries to figure out what datasource
> you're asking for it looks only in the directed acyclic subgraph of
> ancestors of your app. (this lets you deploy lots of distinct
> datasources with the same "name" in different plugins and still be
> able to refer to them individually without specifying the exact plugin
> they come from everywhere you want a datasource).
> - deploy a datasource e.g. using the console and note what the
> artifact name is for the resulting plugin
> - add a dependency on that datasource plugin into the ear or ejb plan
> (geronimo-application.xml or openejb-jar.xml)
> As long as the name in the @Resource annotation matches the name in
> the connector plan that's all that's necessary.
> david jencks
thanks a lot for your explanation. I've tried to deploy it, as you
described, but it didn't work.
I don't know where my mistake is. I've tried it in the following way:
1. Using the WebConsole, I've created a database pool using the database
pool wizard. The name of the pool is "jdbc/__mes". The database is
accessible successfully (test-db-ping works).
2. Now the database pool with the name "jdbc/__mes" is listed in the
"Database Pools" page in Geronimos WebConosle. If I follow the link "Usage"
for this pool, I see a lot of hints how to use this pool - but I can't bring
it to work.
3. The "Usage" page tell me to include the following section into my
Also this page tell me to insert the following code into the
As fas as I understand you, it is not neccessary to do this in the web.xml
and geronimo-web.xml files. Instead I may define this in the
As you wrote, I've tried to use add a dependency in the
geronimo-application.xml - this is the result:
<?xml version="1.0" encoding="UTF-8"?>
The @Resource annotation has a "name" this attribute: "jdbc/__mes".
But I still got this deployment error. Also I've tried to insert the
following section in the geronimo-application.xml, but it didn't help:
I don't know, what my mistake is.
Do I need to add something to the "application.xml"?
What do I need to add to the "geronimo-web.xml" to make jdbc connection
available for all web and ejb modules included in the ear?
View this message in context: http://www.nabble.com/%22Could-not-auto-map-to-resource%22-problem-when-using-EJB-annotations-only-tp23316686s134p23364735.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.