- Given the AdminServer (weblogic).
- We would like list deployed applications in weblogic (AdminServer)
- Connect to AdminServer using t3 protocol.
- Get list of applications deployed in AdminServer
- Disconnect from AdminServer
Program: List deployed applications in weblogic Admin Server:
def listDeployments():
listAppDeployments = cmo.getAppDeployments()
for appDeployed in listAppDeployments:
print appDeployed.getName()
connect("myAdmin","mypassword","myAdminServer:7001")
#Enter the Application name
appName = 'difftool'
isAppDeployed=listDeployments()
disconnect()
Output: Check application is deployed in AdminServer – WLST:
c:\fmw_12.2.1.3.0\wls12213\oracle_common\common\bin>wlst.cmd D:\weblogic\ListDeployments.py
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to t3://myAdminServer:7001 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "my_domain".
Warning: An insecure protocol was used to connect to the server.
To ensure on-the-wire security, the SSL port or Admin port should be used instead.
FileAdapter
DbAdapter
JmsAdapter
AqAdapter
SocketAdapter
MQSeriesAdapter
OracleBamAdapter
UMSAdapter
CoherenceAdapter
LdapAdapter
MSMQAdapter
SAPAdapter
JDEWorldAdapter
Disconnected from weblogic server: AdminServer