That works as well, but it isn't very portable. If you have an mbean you can specify <attribute name="ConfigFile">${jboss.server.data.dir}/myfolder/23.xml"</attribute>
Regards, Adrian On Fri, 2003-08-29 at 13:55, Stefan Groschupf wrote: > File file = new File(System.getProperty("jboss.server.data.dir") + "/" + > "myFolder/23.xml"); > > point to / jbosshome/server/yourConfig/data/myFolder... > > HTH Stefan. > > > 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 ------------------------------------------------------- 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