This content has been marked as final.
Show 3 replies
-
1. Re: how to load external files?
kruno Apr 20, 2008 9:05 PM (in response to nes)I am not sure that I understand.
How big are we talking about 1 GB or more, and why would you whant it all in memory. -
2. Re: how to load external files?
nes Apr 20, 2008 9:27 PM (in response to nes)thanks for your answer. though it does make me wonder that whatever i do, people start questioning if im in my right mind. anyway, the answer to my question is something like this: assert(Thread.currentThread().getContextClassLoader() .getResource("Xmldateibegin.txt") != null); which looks much like a testng test. WHICH WOULD WORK IF I GOT THIS FRACKING TESTNG STUFF RUNNING!!!1 n.
-
3. Re: how to load external files?
mars1412 Apr 22, 2008 10:47 AM (in response to nes)maybe this helps
javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); ServletContext servletContext = (ServletContext) facesContext.getExternalContext().getContext(); InputStream is = Resources.getResourceAsStream(filePath, servletContext);