WLSTã§ãã¨ãã©ã¤ãã©ãªä½æ #yutori_history
ãã®è¨äºã¯ゆとりアドベントカレンダーã®3æ¥ç®ã§ãã
寿å¸ã«ã¤ããã¦åå ãã¦ãã¾ãã¾ããã私はイワシが好きです。ãããããé¡ããã¾ãã
ããã§ã¯ãæ¬é¡ã«è¡ã£ã¦ã¿ã¾ãããã
ç¸å¤ãããã®WebLogicãã¿ããããããªãã®ã§ããããã¨ãããã«æåã«ææããããä¼ãããã®ã¯ãWebLogic Server勉強会ã ã£ãã¨æãã¾ãã®ã§ãã許ãä¸ããã
ã¾ããWLSTã¯WebLogic Scripting Toolã®ç¥ã§ãPythonã®Javaå®è£
ã§ããJythonãå©ç¨ãã¦ãWebLogic Serverã®ç®¡çãç£è¦ãªã©ãè¡ãã¾ãã
詳細ã¯マニュアルãåç
§ãã ããã
WLSTãå®è¡ããéã«ãå
±éã§å©ç¨ã§ããã©ã¤ãã©ãªãç°¡åã«ä½æãã¦ã¿ã¾ãããã
(yutori.py)
print 'ãã¨ãããã®ãããã§å¯¿å¸ãé£ã¹ãã' def tweet(): print '#ã«ãªã¹ãªé¯' def laugh(): print 'ãããããã¼'
ãã¦ãå¼ã³åºãã¦ã¿ã¾ãããã
/server/bin/setWLSEnv.sh (Windows: setWLSEnv.cmd)ãªã©ã§ç°å¢å¤æ°ãè¨å®ãã¦ãã java weblogic.WLST /common/bin/wlst.sh (Windows: wlst.cmd)
ã®ã©ã¡ããã§WLSTãå®è¡ã§ãã¾ãã
WebLogic Scripting Tool(WLST)ãåæåãã¦ãã¾ã... ãã¨ãããã®ãããã§å¯¿å¸ãé£ã¹ãã WebLogic Server Administration Scripting Shellã¸ãããã 使ç¨å¯è½ãªã³ãã³ãã«é¢ãããã«ãã表示ããã«ã¯ãhelp()ã¨å ¥åãã¦ãã ãã wls:/offline> yutori.tweet() #ã«ãªã¹ãªé¯ wls:/offline> yutori.laugh() ãããããã¼
ããã§ãã¤ã§ããã¨ããããå¼ã³åºãã¾ãã
次ã¯株式会社サムライズムã®ä»£è¡¨åç· å½¹ã§ãã[twitter:@yusuke]æ°ãä½ããæ¸ãã¦ãããã¯ãã§ãã
*1:WebLogic Serverã®ãã¼ã ãã£ã¬ã¯ããªã"/opt/oracle/middleware/wlserver_12.1"ã®ãããªãã£ã¬ã¯ããªã«ãªãã¾ãã