Use a resource-ref to define a URL. (The most portable mechanism) Or classloader.getResource[AsStream]() and put the file in your deployment or the /conf folder if it is shared.
Regards, Adrian On Fri, 2003-08-29 at 13:02, Milen Dyankov wrote: > Hi, > > suppose I have EJB that needs to read some configuration data from external file > (lets say an XML file). > Where I'm supposed to place this config file, and how can I tell my EJB where it is? > > I've tried to pack both the EJB and "config.xml" in jar and use something like > > File file = new File("config.xml"); > > but it looks like my EJB is expecting to find "config.xml" in > "/path/to/jboss/bin" folder. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user