I need a custom property to set per each server JVM in Weblogic. What is the better approach doing it?
I know we can specify the argments like below:
- In the Domain Structure pane, expand the Servers node.
- Click the name of the server that you want to configure.
- In the right pane, click Server Start.
- Select Lock & Edit.
- In the Arguments text box, provide the JVM options. After inserting your options, click Save. Then click Activate Changes.
- Restart the server so that the new settings are used.
My question is how exactly the argument is defined? How to use that argument inside the application that will be deployed inside that JVM.
Edit
If i specify, -DMyArg=MyValue
and in the code, value=System.getproperty("MyValue");
this should work, right?