On Thu, Apr 19, 2012 at 11:48 PM, S Ahmed <[email protected]> wrote: > Barrie, > > I see, ok I'm looking into the JNDI method. > > I'm hosting this app in both tomcat and jetty. > > Could I put this dndi file in my class path so I don't have to hard code > the location, or does it have to be in the servlet container? i.e. jetty or > tomcat > > My jetty instance is an embedded instance...
Have a look around at some of the recent similar posts. I thought Ron's blog gave some details on how to use JNDI. Yes, putting things on the class path is the best way to load resource files. Then you don't have to worry about physical locations on disk. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
