geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Kashyap" <>
Subject Re: Question about a sample Application
Date Tue, 30 Oct 2007 03:42:09 GMT
#1. The example asks you to create a DB named InventoryDB and then run
some sql commands to create tables.

#2. Your web.xml has a resource ref to jdbc/InventoryDS. This is a
part of the jndi name of the datasource (not database).

#3. The geronimo-web.xml links your jdbc/InventoryDS with the
datasource's name called InventoryPool.

#4. Then the InventoryPool.xml which is the alt-DD for the RA links
the InventoryPool datasource with the InventoryDB you created in #1.

For further reading, check out this link

This is the usage link for the InventoryPool under "Database Pools"
navigational link. If you have deployed the Inventory app, you will
see this link too.

Hope this helps


On 10/29/07, <> wrote:
> Hi , we are working on the geronimo one project. We were looking at a
> sample application that connects to the database in geronimo . Upone
> studying it we stumbled upon a syntax that has a little confused
> In your for the inventory application we found this line of
> code.
> DataSource ds =
>  (DataSource)context.lookup("java:comp/env/jdbc/InventoryDS");
> We know what the function does . We just don't know what the parameter
> represents. Which part of the parameter represents the database we are
> connecting to? We need to know the nature of the parameter so that we can
> use it in our own application.

View raw message