• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to go with database

 
shekar march chandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ppl,

I have been told to use jndi for database related things.

I know how to use jdbc driver in a single stand alone program.

But how to go with tomcat server and database and my program.

What i think is :

1. Create a table in ms-access database as usual.

2. open setting, admin tools, go to odbc sources and provide a datasource name and link to database.

3. In your program, perform a lookup for datasource name(what i gave in step 2).

4. modify server.xml, in that also provide the same datasource name( what i gave in step 2).

This is what i am thinking.

If something is missing or something to be added or deleted or incorrect.

Please provide me suggestions, how to go with it.

Thanks,
Chandra
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks fine. The best way to verify is to try it out!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!