• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JNDI to look up database

 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please let me know the means to register and look up persistence storage or database using JNDI
thanks
Vikas
 
R. Shellbay
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not quite my area, but I may help with a few comments.
There are mechanism's in different applicationservers for registering datasources as a jndi resource. This datasource can be used by you by doing a JNDI lookup of that exact datasouce.
There should be several tutorials out there to help you on your way
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Shell bay
but as i know when i create datasource in my application server , i use to mention the name or location of data base here...
ca u tell me while using jndi where do location of database is mentioned?
Originally posted by R. Shellbay:
This is not quite my area, but I may help with a few comments.
There are mechanism's in different applicationservers for registering datasources as a jndi resource. This datasource can be used by you by doing a JNDI lookup of that exact datasouce.
There should be several tutorials out there to help you on your way
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops i forget to tell that in those cases i use to have database in my domain
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ca u tell me while using jndi where do location of database is mentioned?

Using JDBC URL string in a vendor specific way. check your app ans driver docs for more details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic