• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

struts-config's data-source tag

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are puting the database connectivity code in a file named OracleDs(jndi name) and this file is read through lookup() method of IntialContext class.This OracleDs file is inside deploy folder of JBoss server.
My question is if I will write the database connectivity code in strut-config.xml file's <data-source> tag then whether it is required to remove the OracleDs file from deploy folder of the server.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A DataSource delcared through the struts <data-source> tag and a DataSource accessed through JNDI have nothing to do with each other. Furthermore, the struts DataSource utility has been deprecated. It is no longer supported in the latest version of Struts.

I'd recommend that you continue accessing your DataSource through a JNDI lookup and avoid using the struts DataSource utility.
 
The only cure for that is hours of television radiation. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic