How to configure jsm service script language in weblogic

Source: Internet
Author: User

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 ).


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.