I recently studied weblogic's jms service configuration and application related things and summarized some articles and so on. Weblogic has a powerful functional advantage in related configuration on the console, which can be recorded as a py script, so that we only need to execute the recorded script after the next configuration. Of course, some problems were also encountered at the beginning, that is, the script was recorded and required certain permissions during execution. The document content is as follows for your reference only:
1. Open the weblogic scripting tool.
2. Connection administrator user.
For example: connect ('weblogic ', 'weblogic123', 't3: // 10.1.91.95: 7001 ');
Weblogic: weblogic is the administrator user name.
Weblogic123 is the User Password
T3: // 10.1.91.95: 7001 is the address for accessing weblogic.
3. Enter the modification mode.
Edit ();
StartEdit ();
4. Execute The py script.
Execfile ('absolute path of the script file! ');
5. save () and save the changes during execution.
Note: Another method is to directly execute the py script from the doscommand, which requires you to set the environment variable as follows:
1. Set environment variables:
1) Add the environment variable WL_HOME = "E: \ weblogic \ wlserver_10.3" (This path depends on your situation and serves as a path variable );
2) Add "% WL_HOME % \ server \ bin" in the Path environment variable (this variable points to the directory where the weblogic service bin is located );
3) "% WL_HOME % \ server \ lib \ weblogic. jar;" is added to the CLASSPATH environment variable (this setting is used to start the weblogic scripting tool from dos ).
2. Start weblogic scriptingtool
Java weblogic. WLST;
3. log on to the Administrator (as shown above );
4. Enter the modification mode (as shown above );
5. Execute The py script (as shown above ).
If the permission permits, add the following operations to directly execute the script file:
Java weblogic. WLST filePath. py;
Java weblogic. WLST-I filePath. py;
6. Execute save () to save the changes (as shown above ).