This content has been marked as final.
Show 6 replies
-
1. Re: Property files and JBoss !!!
davidjencks Mar 5, 2002 9:10 PM (in response to vijayan)Can you put it in the jar with your beans and access it through the classloader as a resource?
-
2. Re: Property files and JBoss !!!
vijay Mar 7, 2002 2:15 PM (in response to vijayan)You can put the property file into directory JBoss\bin.
It is the default directory. I have tried that and it workds. -
3. Re: Property files and JBoss !!!
kelly_kong03 Mar 9, 2004 9:36 AM (in response to vijayan)"hiya" wrote:
You can put the property file into directory JBoss\bin.
It is the default directory. I have tried that and it workds.
RE: I created a property file called mint.properties and put into the folder you specified, but how come it did not work. is there any naming convention for the property files? -
4. Re: Property files and JBoss !!!
milowe Mar 10, 2004 3:46 AM (in response to vijayan)Are you reading the file as a resource?
Properties prop = new Properties(); prop.load(this.getClass().getResourceAsStream("/yourFile"));
You could put the file in server/defualt/conf (if using deafult config and its a global property file).
And you should avoid reading prop files from EJB since the file system IO
isnt designed for transactions. -
5. Re: Property files and JBoss !!!
kelly_kong03 Mar 10, 2004 1:03 PM (in response to vijayan)Thanks
-
6. Re: Property files and JBoss !!!
kaobe Mar 11, 2004 2:02 AM (in response to vijayan)Hi,
I think it would be more elegant to use one of the JBoss system properties (for example System.getProperty("jboss.server.data.dir");) and then save the file there.
Peter