• 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
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

where to put xml file so it gets built in ear

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok this seems like a simple question ,but here goes..

basicalli I have a session bean that uses a pojo utility class that simply reads in an XML file using document builder like:

Document doc = new docBuilder.parse(new File("C:/myfile.xml"));

and works perfectly.

But I do not want it to be external to the EAR and read from my hard drive, I want to put in inside and built from with the EAR.

how do i go about acheiving this? what dir do i put the xml file so it gets found..

thanks
[ February 12, 2006: Message edited by: david lightman ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic