J2EE tutorial 執行個體安裝

來源:互聯網
上載者:User
本節介紹各個代表性執行個體的安裝,原英文介紹文檔位於以下路徑:J2EE1.4/samples/docs/list.html
Duke’s Bookstore
1 編譯。
切換到J2EE1.4 ampleswebappsookstoreookstore1 rc
1) 執行 asant clean.,這是清除
2) 執行 asant core,這是編譯
2 啟動PointBase資料庫,並準備資料
1) 執行<pointbase_install_dir>/tools/serveroption/startserver.bat 指令碼
2) 啟動Server
3) 切換到J2EE1.4 ampleswebappsookstoreookstore1 rc,運行:
asant deploy
3 運行
在瀏覽器鍵入:http://<host>:<port>/bookstore1/enter
4 產生javadoc
在J2EE1.4 ampleswebappsookstoreookstore1 rc下運行:
asant javadocs
Stateless SessionBean
Location: J2EE1.4 amples/ejb/stateless/simple/src
Stateful SessionBean-CartBean
Location: D:DevsJ2EE1.4 amplesejb tateful imple rc
Run:
cd <install_dir>/domains/<domain_name>/applications/j2ee-apps/stateful-simple/
run : appclient -client stateful-simpleClient.jar -name CartClient –textauth
CMP Customer
Location: D:DevsJ2EE1.4 amplesejbcmpcmpcustomer rc
1 在控制台建立jdbc串連資源,名稱為:jdbc/cmpcustomer
2 建立串連池:cmpcustomer-pool
Run: http://localhost:8080/customer/
StorageBin (bmp-Simple) Application
Location: D:DevsJ2EE1.4 amplesejbmp imple rc
How to Run:
In: D:DevsJ2EE1.4domainsdomain1applicationsj2ee-appsmp-simple
Run:
appclient -client bmp-simpleClient.jar -name StorageBinClient -textauth
MDB
Location: D:DevsJ2EE1.4 amplesejbmdb imple rc
定義資源
1 登陸Server,在Java Message Service 處點擊Connection Factories,然後選擇New
2 輸入:
JNDI-Name: jms/MyQcf Type: javax.jms.QueueConnectionFactory Resource: Select Enabled checkbox
3 點擊 Destination Resources 點 New,輸入:
JNDI-Name: jms/MyQueue Type: javax.jms.Queue Resource: Select Enabled checkbox
4 運行:
in :D:DevsJ2EE1.4domainsdomain1applicationsj2ee-appsmdb-simple
run
appclient -client mdb-simpleClient.jar -name SimpleMessageClient –textauth -xml D:DevsJ2EE1.4domainsdomain1config un-acc.xml

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.