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

Reply via email to