<< WebLogic Server 10g Release 3 を Mac OSX にインストール | Home | JBoss勉強会 >>

WebLogic Server 10g Release 3 - Mac OSX で WLST

WLST は WebLogic Scripting Tool の略。
WebLogic を Jython(Java上の Python 実装)で操作する不思議なツールです。
#個人的には昔から慣れ親しんでいる weblogic.Admin が好みですが

もちろん Mac でも WLST は動きます。

以下、Mac で WLST を起動、WLS に接続、シャットダウンしたところ:

/Users/yusukey/bea103/user_projects/domains/base_domain/bin$ . setDomainEnv.sh
-bash: Don't know how to set the shared library path for Darwin.
yusukey@ymacbook-3:/Users/yusukey/bea103/user_projects/domains/base_domain$ java weblogic.WLST

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> connect('weblogic','weblogic','t3://localhost:7001')
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_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.

wls:/base_domain/serverConfig> ls()
dr-- AdminConsole
dr-- AppDeployments
dr-- BridgeDestinations
dr-- Clusters
dr-- CustomResources
dr-- DeploymentConfiguration
dr-- Deployments
dr-- EmbeddedLDAP
dr-- ErrorHandlings
dr-- FileStores
dr-- InternalAppDeployments
dr-- InternalLibraries
dr-- JDBCDataSourceFactories
dr-- JDBCStores
dr-- JDBCSystemResources
dr-- JMSBridgeDestinations
dr-- JMSInteropModules
dr-- JMSServers
dr-- JMSSystemResources
dr-- JMX
dr-- JTA
dr-- JoltConnectionPools
dr-- Libraries
dr-- Log
dr-- LogFilters
dr-- Machines
dr-- MailSessions
dr-- MessagingBridges
dr-- MigratableTargets
dr-- RemoteSAFContexts
dr-- SAFAgents
dr-- SNMPAgent
dr-- SNMPAgentDeployments
dr-- Security
dr-- SecurityConfiguration
dr-- SelfTuning
dr-- Servers
dr-- ShutdownClasses
dr-- SingletonServices
dr-- StartupClasses
dr-- SystemResources
dr-- Targets
dr-- VirtualHosts
dr-- WLDFSystemResources
dr-- WLECConnectionPools
dr-- WSReliableDeliveryPolicies
dr-- WTCServers
dr-- WebAppContainer
dr-- WebserviceSecurities
dr-- XMLEntityCaches
dr-- XMLRegistries

-r-- AdminServerName AdminServer
-r-- AdministrationMBeanAuditingEnabled false
-r-- AdministrationPort 9002
-r-- AdministrationPortEnabled false
-r-- AdministrationProtocol t3s
-r-- ArchiveConfigurationCount 0
-r-- ClusterConstraintsEnabled false
-r-- ConfigBackupEnabled false
-r-- ConfigurationAuditType none
-r-- ConfigurationVersion
-r-- ConsoleContextPath console
-r-- ConsoleEnabled true
-r-- ConsoleExtensionDirectory console-ext
-r-- DomainVersion
-r-- GuardianEnabled false
-r-- InternalAppsDeployOnDemandEnabled true
-r-- LastModificationTime 0
-r-- Name base_domain
-r-- Notes null
-r-- Parent null
-r-- ProductionModeEnabled false
-r-- RootDirectory /Users/yusukey/bea103/user_projects/domains/base_domain
-r-- Type Domain

-r-x freezeCurrentValue Void : String(attributeName)
-r-x isSet Boolean : String(propertyName)
-r-x unSet Void : String(propertyName)

wls:/base_domain/serverConfig> shutdown()
Shutting down the server AdminServer with force=false while connected to AdminServer ...
Disconnected from weblogic server: AdminServer

Re: WebLogic Server 10g Release 3 - Mac OSX で WLST

WLSTまで動くとは、流石、「Write once, run anywhere」の精神、WebLogicって。


Re: WebLogic Server 10g Release 3 - Mac OSX で WLST




Re: WebLogic Server 10g Release 3 - Mac OSX で WLST

まぁ、WLST 自体は Pure Java ですから当たり前といえば当たり前ですね。 WLS9.0 でも普通に動いていましたし。 ほんと強力ですが取っつき悪い。毎回カッコ書くのも面倒だし・・・。

コメント追加 トラックバック送信