eagames |
|
|||
日歷
統計
導航常用鏈接留言簿(2)隨筆分類
隨筆檔案收藏夾test搜索最新評論
閱讀排行榜評論排行榜 |
Jbuilder9+Weblogic8.1安裝配置 -------------------------------------------------------------------------------- Ⅲ. Jbuilder9的安裝與配置 Jbuilder9的安裝挺方便的,運行ent_trial_install.exe, InstallAnywhere 會解壓安裝,你要做的就是next & install。 Jbuilder9安裝好,能正常運行了,接下來就可以在Jbuilder中配置Weblogic了,點擊"開始/程序/Borland JBuilder 9 Enterprise Trial/Borland JBuilder 9 Enterprise Trial"啟動Jbuilder9à在菜單欄點擊"Tools/Configure Servers..."à彈出"Configure Servers"窗口,在左邊的User Home目錄中選擇"WebLogic Platform Server 8.x",選中右邊的"Enable server"項,這時右邊所有本來是灰色的項都變得黑色的可使用狀態。首先,在"General"子頁中將Home directory:設為d:/bea/weblogic81/server(注:這里的d:/bea填的應該是你自己的bea安裝目錄),"Working directory:"設為d:/bea/user_projects/mydomain, 如果你的bea不是安裝在c:/,那么就需要將"VM parameters:"屬性中的"-Djava.library.path="D:D:/bea/weblogic700/server/bin""和" -Djava.security.policy=="D:D:/bea/weblogic700/server/lib/weblogic.policy" " 去掉一個"D:"。
接下來到"Custom"子頁,"BEA home directory:"設為d:/ bea ;" JDK installation directory:"設為d:/bea/jdk141_02 ,"Domain directory:"設為d:/bea/user_projects/mydomain,在"User name:","Possowrd:"中填入安裝WebLogic時的用戶名和密碼,將"Listen address:"改為"localhost",不選"Add an Admin Console item to the tools menu"和"Add a Configuration Wizard item to the tools menu",完成后點擊"OK"。
接下來在菜單欄點擊"Project/Default Project Properties..."à彈出"Default Project Properties"窗口,在"Server" 子頁中選中"Single server for all services in project",然后在其下面的下拉框中選擇"Weblogic Application Server 8.x",點擊"OK"確定。
JDBC的連接有兩種,一種是直接連接,另一種是池連接。這里介紹的是通過配置連接池(Connection Pool)和數據源(DataSource)來實現池連接。 首先,點擊"開始/程序/BEA WebLogic Platform 8.1/User Projects/mydomain/Start Server",啟動WebLogic server8.1, 接著在IE的地址欄輸入http://localhost:7001/console,回車,出現Weblogic Server登錄頁面,輸入Username:和Password,點擊Sign In登錄。 點擊"Services Configurations/JDBC/Connection Pools/Configure a new JDBC Connection Pool...", 建立一個連接池,在Choose database中選擇 Database Type:為Oracle,Database Driver:選擇Oracle′s Driver(Thin) Versions:8.17,9.01,9.20,點擊Continue,在Difine connection properties中設置: Name:oraclePool ? 點擊Continue繼續,進入Test database connection頁面,點擊Test Driver Configuration,進入Create an deploy頁面,如果你看到的是綠色Connection successful字樣,說明配置成功,點擊Create an deploy建立oraclePool連接池。 ? ? 接下來我們配置數據源testTxDataSource,單擊控制臺左側域樹的JDBC/ Data Source節點,然后單擊右側的Configure a new JDBC Tx Data Source,進入Configure the data source選項卡。 ? Name: testDataSource 點擊Continue進入下一頁面填寫 Pool Name: oraclePool ?
? 至此,Oracle 在WebLogic中的JDBC設置就完成了,重新啟動WebLogic,如果沒有報錯就說明配置成功。 |
![]() |
|
Copyright © EA_Games | Powered by: 博客園 模板提供:滬江博客 |