• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of resource-ref in web.xml

 
Karthik Vijayarajan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I came across some code that declares the datasources using <resource-ref> in web.xml.

If my understanding is correct, the resources declared in web.xml cannot be used outside of the web project. Say, for example i create two projects WebProject and ServiceProject. Will the resources declared in the web.xml(WebProject) be available in the ServiceProject? Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course not. Why would you expect declarations for one context to be available to others?
 
Karthik Vijayarajan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic