Archive for the ‘IBM WebSphere Application Server’ Category

February 11

WebSphere Application Server v6.1 LoadBalance 與 Failover 測試程式

前面說過前陣子做了一些裝機的工作,而這其中又大多數是需要架設 Cluster 的環境。
為什麼需要 Cluster?不外乎就是要做到 LoadBalance 以及 Failover。
當然幫人家裝完之後,就要驗證給人家看看啦,總不能老出張嘴,我們又不是 Sales 或者是政客。
其實要寫這兩個測試程式也沒什麼太難的地方,
比較複雜的地方在於你必須對 WebSphere 有基本的認識,
才能做這些測試啦。
大家可以點選下面的 link 來下載,希望別把我的頻寬都吃掉才好。
LoadBalance.ear
LoadBalance_source.ear
Failover.ear
Failover_source.ear
LoadBalance 的部份,主要是在部屬程式之後,再到各個 node 上面去直接修改 index.jsp 的內容。
舉例來說,我就會把第二個 node 的 index.jsp 內容改為 <%= “AP2″ %>。
然後在同一台電腦,打開兩個不同的瀏覽器(我都是開一個 firefox 一個 explorer),
基本上就可以看到不一樣的結果了。
本來是有做一些 snap 的 jpg 檔案啦,但是不知道丟到哪去了…:p
有空再補上來。
Failover 的部份就要多些步驟了,同樣也是需要去改程式內容。
(我依舊是去改 AP1 變成 AP2,比較簡單)
在 Cluster 啟動之後,打開瀏覽器,refresh 兩次。
為什麼要 refresh 兩次?只是因為我加了 session 的判斷,
所以第一次沒有這個 session 的時候會寫入,
第二次就會不寫入 session 然後直接顯示出來了。
特別注意到 session 的 activation 我設定為 -1,因為用 notebook 跑 [...]

Posted by 馬克ㄙㄨ . Filed under IBM WebSphere, IBM WebSphere Application Server, 馬克ㄙㄨ實驗室 | 8 Comments

October 24

回應 Fangchi:如何更新 WebSphere Application Server v6.0

Fangchi 在我回國那天,問了如何更新 WAS v6.0 的問題。
抱歉拖到今天,因為每次員工旅遊回來,事情都多到不行。
以下是更新 WAS v6.0 的步驟:
到 IBM WebSphere Application Server support 去找 “fixes by versions” 或是 “recommanded fixes” 的連結。
找到你想要下載的版本以及作業系統之後(在本文發表的時候,最新的 fix 還是 6.0.2.15),
將 AppServer、Plug-ins、HttpServer(如果你有裝 IBM Http Server 的話)、
App Client(如果你有用到的話)的檔案下載下來,
“分別” 解壓縮到你當初安裝這些產品的目錄裡面去,解壓縮之後,你應該會看到 updateinstaller 的資料夾,
將這個資料夾打開,會看到 update.exe(在 windows 平台),點兩下執行就會跳出畫面帶你一步一步更新囉!
至於順序的話,可以參考 James Chiang 架設的 WebSphere@Taiwan 這篇文章,介紹的很詳盡!
以上的過程當中,最笨的事情就是 “分別” 下載各個 refreshpack/fixpack,
而且每個 refreshpack/fixpack 都包了一份 updateinstaller。
所以到了 v6.1 之後,updateinstaller 就不再跟著 refreshpack/fixpack 下載了,
而是分別下載(或是在產品的光碟裡)並 “安裝”;
下載的 refreshpack/fixpack 僅僅只有要修正的內容 [...]

Posted by 馬克ㄙㄨ . Filed under IBM WebSphere, IBM WebSphere Application Server | 5 Comments

June 26

WebSphere Application Server 6 fixpack 6.0.2.11

6.0.2.11: WebSphere Application Server V6.0.2 Fix Pack 11
已經 release 囉
目前測試中….看看修正了哪些東西….

Posted by 馬克ㄙㄨ . Filed under IBM, IBM WebSphere, IBM WebSphere Application Server | 4 Comments

May 24

用 WebSphere 的人似乎越來越多了

最近在 JavaWorld 裡面逛來逛去
發覺 WebSphere Application Server 的文章多了起來
當然原因有二:
第一個原因是 Sales 會賣,所以客戶多了
第二個原因是實在是這東西有點複雜,而且也沒多少中文資源可查,所以問問題的人就多了
身為 WebSphere 的重度使用者
小弟就在這邊跟大家分享一些資訊
完全不懂 WebSphere 這個 Brand 底下的軟體在做什麼的,請看這裡:
New to WebSphere
大多數人用的,或者是聽過的,應該是 WebSphere Application Server,簡稱 WAS
目前最新的版本是第六版,有幾本 Redbook 可以給大家參考,可以按順序研讀:
WebSphere Application Server V6 Planning and Design WebSphere Handbook Series
WebSphere Application Server V6 System Management & Configuration Handbook
WebSphere Application Server V6 Security Handbook
WebSphere Application Server Network Deployment V6: High Availability Solutions
WebSphere Application Server [...]

Posted by 馬克ㄙㄨ . Filed under IBM, IBM WebSphere, IBM WebSphere Application Server | 3 Comments