There are two easy methods to do this.
1. Change the socket-binding in the configuration file.
2. Set the system property on startup. The property names are listed in the configuration file.
The question: "What is the best method", belongs to your requirements. If you always use a default configuration file with no changes then method two are the best method. If you already change the configuration then method one maybe is the best.
1 of 1 people found this helpful
I think it is better to use system property as we don't need to change in configuration. In domain mode, there are multiple socket-bindings and we need to change every where. When we use system property, we just need to pass this on start-up.