CN108366108B - WebLogic cluster user management method and device based on JMX technology - Google Patents
WebLogic cluster user management method and device based on JMX technology Download PDFInfo
- Publication number
- CN108366108B CN108366108B CN201810097244.4A CN201810097244A CN108366108B CN 108366108 B CN108366108 B CN 108366108B CN 201810097244 A CN201810097244 A CN 201810097244A CN 108366108 B CN108366108 B CN 108366108B
- Authority
- CN
- China
- Prior art keywords
- weblogic
- domain
- mbeanserverconnection
- user management
- jmx
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a WebLogic cluster user management method and a WebLogic cluster user management device, wherein the WebLogic cluster user management method is realized by adopting a JMX technology theory of a Java technology, and the JMX technology provides a simple and standard method for operating application programs, equipment and service data. The WebLogic cluster operation method adopts JMX to realize batch operation of the WebLogic cluster of the enterprise service bus production system, realizes consistent operation of the WebLogic cluster, reduces the manual workload of operation and maintenance personnel and reduces the operation and maintenance cost.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a WebLogic cluster user management method and device based on JMX technology.
Background
A large cluster system will typically have more than 100+ WebLogic domains. With the need for project development, domain users need to be operated, including: adding a user, modifying the user, deleting the user and the like, wherein in a common case, each domain is manually repeatedly operated. For example: admin commands, execute the command line on Console, manipulating the domain data. This solution has two drawbacks: first, because of the command line, the operation log cannot be written directly into the database, and the operation log is an indispensable data in the project. Second, this approach does not fundamentally solve the problem of manually logging into each domain. Resulting in time and labor consuming operation and difficulty in ensuring consistency because of repeated manual operations.
JMX, known collectively as Java Management Extensions, is an extension of managing Java. The mechanism can conveniently manage and monitor the running Java programs. The method is commonly used for managing threads, memories, log levels, service restart, system environments and the like. And directly acquiring a management instance of the WebLogic domain through a JMX development kit of JAVA, and then directly operating related data of the WebLogic domain by adopting a JAVA technology through the instance. However, the above operation method needs to have rich JAVA development experience, and has a deep JAVA development background.
In view of the above, there is a need to provide further improvements to the current WebLogic cluster user management technology.
Disclosure of Invention
In order to solve at least one technical problem, the main object of the present invention is to provide a WebLogic cluster user management method based on JMX technology.
In order to achieve the purpose, the invention adopts a technical scheme that: the WebLogic cluster user management method based on the JMX technology comprises the following steps in sequence:
s10, creating a JMXServiceURL object according to the relevant information of the appointed t3 protocol and domain;
s20, acquiring a JMXConnector object from the connect method of the JMXConnectorFactory according to the JMXServiceURL object and the verification information of the login domain;
s30, acquiring an MBeanServerconnection object from the JMXConnector object;
s40, controlling WebLogic domain information according to the invoke method of the MBeanServerConnection object;
and S60, reversely releasing the created related objects.
Before step S60, the method further includes:
and S50, acquiring the result state returned by the interface, and recording the operation log into the database.
Wherein, the step S40 specifically includes:
and designating an ObjectName object, and calling a method name and parameters required by a corresponding method to control related data in a WebLogic domain by an invoke method of the MBeanServerConnection object.
Wherein, in step S40, the method specifically includes:
and designating the ObjectName object, the createUser method and the related information array of the newly added user to an invoke method of the MBeanServerConnection object to control the newly added user in the WebLogic domain.
Wherein, in step S40, the method specifically includes:
and an invoke method for specifying an ObjectName object, a changeUserPassword method and an information array needing to be changed as parameters and transmitting the parameters to the MBeanServerConnection object to modify the user password.
In order to achieve the purpose, the invention adopts another technical scheme that: the WebLogic cluster user management device based on the JMX technology comprises the following steps:
the creating module is used for creating a JMXServiceURL object according to the relevant information of the specified t3 protocol and domain;
the JMXConnector verification module is used for verifying the JMXServiceURL object and the verification information of the login domain;
a second obtaining module, configured to obtain an mbanserverconnection object from the JMXConnector object;
the control module is used for controlling WebLogic domain information according to the invoke method of the MBeanServerConnection object;
and the release module is used for reversely releasing the created related objects.
Wherein, the WebLogic cluster user management device based on JMX technology further includes:
and the recording module is used for acquiring the result state returned by the interface and recording the operation log into the database.
Wherein, the control module is specifically configured to:
and designating an ObjectName object, and calling a method name and parameters required by a corresponding method to control related data in a WebLogic domain by an invoke method of the MBeanServerConnection object.
Wherein, the control module is specifically configured to:
and designating the ObjectName object, the createUser method and the related information array of the newly added user to an invoke method of the MBeanServerConnection object to control the newly added user in the WebLogic domain.
Wherein, the control module is specifically configured to:
and an invoke method for specifying an ObjectName object, a changeUserPassword method and an information array needing to be changed as parameters and transmitting the parameters to the MBeanServerConnection object to modify the user password.
The invention provides a WebLogic cluster user management method, which is realized by adopting JMX technical theory of Java technology, and the JMX technology provides a simple and standard method for operating application programs, equipment and service data. The WebLogic cluster operation method adopts JMX to realize batch operation of the WebLogic cluster of the enterprise service bus production system, realizes consistent operation of the WebLogic cluster, reduces the manual workload of operation and maintenance personnel and reduces the operation and maintenance cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a flowchart of a WebLogic cluster user management method based on JMX technology according to an embodiment of the present invention;
FIG. 2 is a flowchart of a WebLogic cluster user management method based on JMX technology according to another embodiment of the present invention;
FIG. 3 is a block diagram of a WebLogic cluster user management device module based on JMX technology according to an embodiment of the present invention;
fig. 4 is a block diagram of a WebLogic cluster user management device module based on JMX technology according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description of the invention relating to "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying any relative importance or implicit indication of the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, in the embodiment of the present invention, the WebLogic cluster user management method based on JMX technology includes the following steps in order:
step S10, creating a JMXServiceURL object according to the relevant information of the appointed t3 protocol and domain;
step S20, acquiring a JMXConnector object from the connect method of the JMXConnectorFactory according to the JMXServiceURL object and the verification information of the login domain;
step S30, obtaining an MBeanServerconnection object from the JMXConnector object;
step S40, controlling WebLogic domain information according to the invoke method of the MBeanServerConnection object;
and step S60, reversely releasing the created related objects.
In this embodiment, by using JMX technical characteristics of JAVA language, a login account and a password are transmitted under a t3 protocol by specifying a related address, a connection object, that is, a JMXConnector object, is obtained from a JMXConnectorFactory class, a management Bean object, that is, an mbaeanserverconnection object, of a WebLogic domain is obtained from the JMXConnector object, domain information is manipulated by using an invoke method of the mbaeanserverconnection object, and finally, the created related object is reversely released.
The present embodiment is implemented by using the JMX technology theory of the Java technology, and the JMX technology provides a simple and standard method for operating application programs, devices, and service data. The WebLogic cluster operation method adopts JMX to realize batch operation of the WebLogic cluster of the enterprise service bus production system, realizes consistent operation of the WebLogic cluster, reduces the manual workload of operation and maintenance personnel and reduces the operation and maintenance cost.
Referring to fig. 2, in an embodiment, before the step S60, the method further includes:
and S50, acquiring the result state returned by the interface, and recording the operation log into the database.
In the embodiment, the operation records can be directly written into the database, and the operation logs are stored in the database, so that the manual workload of operation and maintenance personnel is reduced, and the operation and maintenance cost is reduced.
In a specific embodiment, the step S40 specifically includes:
and designating an ObjectName object, and calling a method name and parameters required by a corresponding method to control related data in a WebLogic domain by an invoke method of the MBeanServerConnection object.
In a specific embodiment, the step S40 specifically includes:
and designating the ObjectName object, the createUser method and the related information array of the newly added user to an invoke method of the MBeanServerConnection object to control the newly added user in the WebLogic domain.
In a specific embodiment, the step S40 specifically includes:
and an invoke method for specifying an ObjectName object, a changeUserPassword method and an information array needing to be changed as parameters and transmitting the parameters to the MBeanServerConnection object to modify the user password.
Specifically, an invoke method of the MBeanServerConnection object is given by the ObjectName object, the createUser method and the related information array of the new user to operate the new user in the WebLogic domain, so that the operation of the new user is realized. Or, appointing an ObjectName object, a changeUserPassage method and an invoke method which takes an information array needing to be changed as parameters and transmits the parameters to the MBeanServerConnection object to modify a certain user password, and the like; similarly, the information of the existing group, the existing role, the newly added group, the newly added role, and the like of the current domain can be acquired and manipulated by specifying the relevant parameters and letting the invoke method of the MBeanServerConnection object execute. Through the operation methods, the program can operate the data in the domain in batch, and the problem caused by manual login operation of each domain is solved.
Referring to fig. 3, this embodiment provides a WebLogic cluster user management device based on JMX technology, where the WebLogic cluster user management device based on JMX technology includes:
the creating module is used for creating a JMXServiceURL object according to the relevant information of the specified t3 protocol and domain;
the JMXConnector verification module is used for verifying the JMXServiceURL object and the verification information of the login domain;
a second obtaining module, configured to obtain an mbanserverconnection object from the JMXConnector object;
the control module is used for controlling WebLogic domain information according to the invoke method of the MBeanServerConnection object;
and the release module is used for reversely releasing the created related objects.
In this embodiment, by using JMX technical characteristics of JAVA language, a login account and a password are transmitted under a t3 protocol by specifying a related address, a connection object, that is, a JMXConnector object, is obtained from a JMXConnectorFactory class, a management Bean object, that is, an mbaeanserverconnection object, of a WebLogic domain is obtained from the JMXConnector object, domain information is manipulated by using an invoke method of the mbaeanserverconnection object, and finally, the created related object is reversely released.
The present embodiment is implemented by using the JMX technology theory of the Java technology, and the JMX technology provides a simple and standard method for operating application programs, devices, and service data. The WebLogic cluster operation method adopts JMX to realize batch operation of the WebLogic cluster of the enterprise service bus production system, realizes consistent operation of the WebLogic cluster, reduces the manual workload of operation and maintenance personnel and reduces the operation and maintenance cost.
Referring to fig. 4, in a specific embodiment, the WebLogic cluster user management apparatus based on JMX technology further includes:
and the recording module is used for acquiring the result state returned by the interface and recording the operation log into the database.
In the embodiment, the operation records can be directly written into the database, and the operation logs are stored in the database, so that the manual workload of operation and maintenance personnel is reduced, and the operation and maintenance cost is reduced.
In a specific embodiment, the control module is specifically configured to:
and designating an ObjectName object, and calling a method name and parameters required by a corresponding method to control related data in a WebLogic domain by an invoke method of the MBeanServerConnection object.
In a specific embodiment, the control module is specifically configured to:
and designating the ObjectName object, the createUser method and the related information array of the newly added user to an invoke method of the MBeanServerConnection object to control the newly added user in the WebLogic domain.
In a specific embodiment, the control module is specifically configured to:
and an invoke method for specifying an ObjectName object, a changeUserPassword method and an information array needing to be changed as parameters and transmitting the parameters to the MBeanServerConnection object to modify the user password.
Specifically, an invoke method of the MBeanServerConnection object is given by the ObjectName object, the createUser method and the related information array of the new user to operate the new user in the WebLogic domain, so that the operation of the new user is realized. Or, appointing an ObjectName object, a changeUserPassage method and an invoke method which takes an information array needing to be changed as parameters and transmits the parameters to the MBeanServerConnection object to modify a certain user password, and the like; similarly, the information of the existing group, the existing role, the newly added group, the newly added role, and the like of the current domain can be acquired and manipulated by specifying the relevant parameters and letting the invoke method of the MBeanServerConnection object execute. Through the operation methods, the program can operate the data in the domain in batch, and the problem caused by manual login operation of each domain is solved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (6)
1. A WebLogic cluster user management method based on JMX technology is characterized by comprising the following steps in sequence:
s10, creating a JMXServiceURL object according to the relevant information of the appointed t3 protocol and domain;
s20, acquiring a JMXConnector object from the connect method of the JMXConnectorFactory according to the JMXServiceURL object and the verification information of the login domain;
s30, acquiring an MBeanServerconnection object from the JMXConnector object;
s40, controlling WebLogic domain information according to the invoke method of the MBeanServerConnection object;
s50, acquiring the result state returned by the interface, and recording the operation log into the database;
s60, reversely releasing the created related objects;
s40 specifically includes specifying an ObjectName object, calling a method name and parameters required by the corresponding method to the MBeanServerConnection object to control the relevant data in the WebLogic domain.
2. The WebLogic cluster user management method based on JMX technology, as claimed in claim 1, wherein said step S40, specifically includes:
and designating the ObjectName object, the createUser method and the related information array of the newly added user to an invoke method of the MBeanServerConnection object to control the newly added user in the WebLogic domain.
3. The WebLogic cluster user management method based on JMX technology, as claimed in claim 1, wherein said step S40, specifically includes:
and an invoke method for specifying an ObjectName object, a changeUserPassword method and an information array needing to be changed as parameters and transmitting the parameters to the MBeanServerConnection object to modify the user password.
4. A WebLogic cluster user management device based on JMX technology is characterized in that the WebLogic cluster user management device based on JMX technology comprises:
the creating module is used for creating a JMXServiceURL object according to the relevant information of the specified t3 protocol and domain;
the JMXConnector verification module is used for verifying the JMXServiceURL object and the verification information of the login domain;
a second obtaining module, configured to obtain an mbanserverconnection object from the JMXConnector object;
the control module is used for controlling WebLogic domain information according to the invoke method of the MBeanServerConnection object;
the release module is used for releasing the created related objects reversely;
the recording module is used for acquiring the result state returned by the interface and recording the operation log into the database;
the control module is specifically used for specifying an ObjectName object, calling a method name and parameters required by the corresponding method to control the related data in the WebLogic domain by the invoke method of the MBeanServerConnection object.
5. The WebLogic cluster user management device based on JMX technology of claim 4, wherein the manipulation module is specifically configured to:
and designating the ObjectName object, the createUser method and the related information array of the newly added user to an invoke method of the MBeanServerConnection object to control the newly added user in the WebLogic domain.
6. The WebLogic cluster user management device based on JMX technology of claim 4, wherein the manipulation module is specifically configured to:
and an invoke method for specifying an ObjectName object, a changeUserPassword method and an information array needing to be changed as parameters and transmitting the parameters to the MBeanServerConnection object to modify the user password.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810097244.4A CN108366108B (en) | 2018-01-31 | 2018-01-31 | WebLogic cluster user management method and device based on JMX technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810097244.4A CN108366108B (en) | 2018-01-31 | 2018-01-31 | WebLogic cluster user management method and device based on JMX technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108366108A CN108366108A (en) | 2018-08-03 |
CN108366108B true CN108366108B (en) | 2021-03-02 |
Family
ID=63007709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810097244.4A Active CN108366108B (en) | 2018-01-31 | 2018-01-31 | WebLogic cluster user management method and device based on JMX technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108366108B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113986365A (en) * | 2021-11-15 | 2022-01-28 | 中国建设银行股份有限公司 | Weblogic-based information modification method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102496095A (en) * | 2011-11-24 | 2012-06-13 | 北京首钢自动化信息技术有限公司 | Hot-charging logistics tracking, monitoring and dynamic scheduling system |
US8468607B2 (en) * | 2009-10-07 | 2013-06-18 | International Business Machines Corporation | Associating multiple security domains to application servers |
CN104137067A (en) * | 2012-05-07 | 2014-11-05 | 甲骨文国际公司 | System and method for supporting a deferred reference to an object in an object-oriented programming language environment |
CN104503903A (en) * | 2014-12-12 | 2015-04-08 | 上海新炬网络信息技术有限公司 | Automatic diagnosis method for fault of weblogic middleware |
CN106453686A (en) * | 2016-11-18 | 2017-02-22 | 畅捷通信息技术股份有限公司 | Connecting method and connecting device for JMX (Java Management Extensions) client |
CN106487600A (en) * | 2016-12-30 | 2017-03-08 | 广东浪潮大数据研究有限公司 | A kind of automatic Deployment Solution for Services of WebLogic cluster |
-
2018
- 2018-01-31 CN CN201810097244.4A patent/CN108366108B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8468607B2 (en) * | 2009-10-07 | 2013-06-18 | International Business Machines Corporation | Associating multiple security domains to application servers |
CN102496095A (en) * | 2011-11-24 | 2012-06-13 | 北京首钢自动化信息技术有限公司 | Hot-charging logistics tracking, monitoring and dynamic scheduling system |
CN104137067A (en) * | 2012-05-07 | 2014-11-05 | 甲骨文国际公司 | System and method for supporting a deferred reference to an object in an object-oriented programming language environment |
CN104503903A (en) * | 2014-12-12 | 2015-04-08 | 上海新炬网络信息技术有限公司 | Automatic diagnosis method for fault of weblogic middleware |
CN106453686A (en) * | 2016-11-18 | 2017-02-22 | 畅捷通信息技术股份有限公司 | Connecting method and connecting device for JMX (Java Management Extensions) client |
CN106487600A (en) * | 2016-12-30 | 2017-03-08 | 广东浪潮大数据研究有限公司 | A kind of automatic Deployment Solution for Services of WebLogic cluster |
Non-Patent Citations (2)
Title |
---|
JMX实现监控weblogic中的jms队列信息(一);zcooke;《ITeye博客》;20120809;参见第2-3页 * |
weblogic理解mbean;indieinside;《CSDN博客》;20141113;参见第1-2页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108366108A (en) | 2018-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11307967B2 (en) | Test orchestration platform | |
US9871697B2 (en) | Dynamic definition for concurrent computing environments | |
US7730183B2 (en) | System and method for generating virtual networks | |
DE202015009286U1 (en) | Short lived applications | |
US11080041B1 (en) | Operating system management for virtual workspaces | |
WO2020015191A1 (en) | Business rule releasing and managing method, electronic device and readable storage medium | |
JPH11231927A (en) | Monitor and control system | |
DE112018000525T5 (en) | Systems and procedures for authenticating Platform Trust or platform trust in a network-aware virtualization environment | |
US20220376972A1 (en) | Implementing management modes for user device management | |
CN111737227A (en) | Data modification method and system | |
CN109726546A (en) | A kind of right management method and device | |
CN108366108B (en) | WebLogic cluster user management method and device based on JMX technology | |
CN111339194A (en) | Automatic scheduling method and device for middleware of database access layer | |
US11663349B2 (en) | System and method for managing data object creation | |
CN112948055A (en) | Innovative course experiment automatic management method and system based on cloud computing | |
US20130073729A1 (en) | User terminal, and method and apparatus for controlling the software management thereof | |
CN111224932B (en) | User management method and device of server out-of-band management system | |
Kumari et al. | Validation of redfish: the scalable platform management standard | |
CN110609763B (en) | Method, electronic device, and computer-readable medium for managing and executing data backup jobs | |
CN114328026B (en) | Virtual disk backup method, device, equipment and medium | |
US11797334B1 (en) | BMC parameter configuration and effect-taking method and apparatus, device, and medium | |
JP2007323651A (en) | System, method and program for managing default value of computer program | |
CN114489674A (en) | Data verification method and device of dynamic data model | |
CA3080710A1 (en) | Centralized automation system for resource management | |
CN111897794A (en) | Database maintenance method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |