-
1. Re: Java property files
travellerx Jun 2, 2015 7:25 AM (in response to emmanuel.lebeaupin)Which project configuration you want to save ?
If you have workitemhandler, you can add the properties file in the same project classpath.
You can use the server's classpath as well but would be helpful if you can explain bit more.
-
2. Re: Java property files
emmanuel.lebeaupin Jun 2, 2015 9:04 AM (in response to travellerx)For example, I have created a workitemhandler to push messages via WebSocket.
I would like configure socket server url into an external property file :
server.socket.url =ws://localhost:1337
I don't want add properties in the project because properties aren't the same according to the environment (development, production,...).
-
3. Re: Java property files
travellerx Jun 2, 2015 9:15 AM (in response to emmanuel.lebeaupin)I haven't tried this before, but in your workitemhandler you can read System Properties which will point to the properties file & you can read it from there, that can be the solution, though might not be best.