0

In First Layer, I have a class library which is MyJFr and there is a method which reads myconfig.xml and returns values from this file.

In Second Layer, I have a JSF Web application and I put myconfig.xml in this project, but I can't access this file from MyJFr Project(First layer).

Where Should I put myconfig.xml in JSF Web application? I tried this before from this link: "Where to place and how to read configuration resource files in servlet based application?".

In addition, if second layer is a desktop application, where should I put my config file?

Community
  • 1
  • 1
Müslüm ÖZTÜRK
  • 961
  • 1
  • 11
  • 30
  • *I have a class library which is MyJFr and there is a method which reads myconfig.xml and returns values from this file* which path uses your library to search this xml file? – Luiggi Mendoza May 20 '14 at 12:49
  • I call readConfig method which is in MyJfr from second layer(JSF application). – Müslüm ÖZTÜRK May 20 '14 at 13:36
  • I mean which path uses when is run as standalone or in your tests. – Luiggi Mendoza May 20 '14 at 13:45
  • Actually, I asked this question to find solution all these problems. – Müslüm ÖZTÜRK May 21 '14 at 06:57
  • You know, you're going to a doctor and saying *my stomach hurts* then the doctor asks you *what did you eat last night?* and your answer is: *my stomach hurts*, then the doctor asks *did you eat something today?* and you reply *my stomach still hurts, do something please!*, the doctor becomes kinda impatient and will try to give you some medications and asks you *are you allergic to some medicine?* and your reply is: *my stomach hurts so much*. Do you think any doctor will help you if you keep with that attitude? No? Do you think we could help you if you don't explain in detail your problem? – Luiggi Mendoza May 21 '14 at 07:00

0 Answers0