on 11-15-2004 10:35 AM
Hi,
I have got an ejb and want to change my variables which I stored in property file at Runtime.
But the property file isn´t in the jar-file of my ejb...
How can I add it.
Or How can I change the property file without new compilation.
Thanks
Uli
Hi Uli,
the previous post is generally correct, but without taking any part in the sensibility of this (there are valid reasons why you would not store the values in a DB) it would be necessary for you to be a bit more specific.
Is your problem that you can not see the file from your EJB or that you don't know how to change a property file entry in general?
Cheers,
Kalle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uli,
I'd say bad idea: If you ever run your ejb's in a cluster how do you want to distribute the changes to all instances? Well, you could write to a shared disk, but this makes things not very much easier.
Better you keep such stuff in a database table.
Regards,
Benny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.