A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
where to put xml file so it gets built in ear
Joined: Nov 03, 2004
Feb 12, 2006 17:12:00
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..
[ February 12, 2006: Message edited by: david lightman ]
Joined: Oct 23, 2005
Feb 12, 2006 23:10:00
This question gets asked about once a month, so I refer you to last months post:
Down Home Country Coding with Scott Selikoff
I agree. Here's the link:
subject: where to put xml file so it gets built in ear
reading an xml file in the web services java file
Velocity to xml and validate with xsd
setting up Log4J in Orion webapps
Default code formatter in eclipse
using xml to configure an application server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014