You are confusing resource-env-refs, which reference AdminObjects, typically jms Topics and Queues, and resource-refs, which reference ConnectionFactories such as Datasources.

Anyway there's an example of how to deploy a datasource on the server in default-database-plan.xml in the assembly module. There is or will be soon a more usable database in system-database-plan.xml. there's an example of deploying a datasource and jms connection factory on an app-client in itests/naming/client/src/plans/plan1.xml

I recommend that instead of using the global ger: context you use resource-refs and the local jndi java:comp/env namespace. I don't know of a web example but they do work and the resource-ref syntax for geronimo-jetty.xml is the same as openejb-jar.xml, and there are examples for that in the openejb itests.

thanks
david jencks

On Oct 2, 2004, at 5:03 PM, Aaron Mulder wrote:

I'm trying to set up a data source and access it from a web app.
I guess I need to somehow deploy a tranql service? If there's an example
somewhere it would be helpful. I think if I get the database in the
global JNDI space then I can use a resource-env-ref in web.xml and a
naming:resource-env-ref in geronimo-jetty.xml and that should put it in my
web app's local JNDI space.


Thanks,
        Aaron




Reply via email to