Re: Barracuda and using Servlet 2.3 features?
"Diez B. Roggisch" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, > Just wondering how important Servlet 2.2 compatibility is for everyone > using Barracuda? I think we use 2.3, but I would like to remain compatible as long as this doesn't mean we have introduce mayor workarounds. > The current way of loading multiple event gateway xml files uses File IO > and, therefore, is very sensitive to how the app is deployed. It must > be deployed as a directory or else things break. This is why File IO > should *never* be used within a web application, much less a framework > for use within web applications. Of course the current way benefits > from the fact that it doesn't require support for servlet 2.3, only > servlet 2.2. I'm not deep into these subjects - but for such cases, we use ClassLoader.getResourceAsStream. This works always, in jars/wars as well as in the file-system. Regards, Diez