• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to put xml file so it gets built in ear

 
david lightman
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • 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 ]
 
Scott Selikoff
author
Saloon Keeper
Posts: 4010
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question gets asked about once a month, so I refer you to last months post:

http://www.coderanch.com/t/77455/Websphere/Loading-properties-file-external-EAR
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic