榕案①辑巴檢①我的最爱)工具①說明 中上一真,+·③搜料④X2 址①Dvsm131 移至M0mAB如品 育料夹 郾名科 大小類型△修改日期 □貍項及未整理交件 Al docs 榕案資料.200711上午1046 71上午1046 CProgram M]opc.ea 173 KB EAR案2002624下午021 petstore ear 1,244 KB EAR蓿案22624下午0216 20026524下午 图 suppler.ear 220 KB EAR蓿案2002624下午 -setup. e 3 KB MS-D0s.2002624下午02:16 a bmcat323 16 KB XML Doc..2002624下午02:16 bpmcat404 WINAMP-MP3放程式 A]IMAGE_COPYRI 20020624下午02 E-C WINNT ALICENSE 10KB家 2002624下午02:16 白本機疏碟①D) 期型榴 大小934KB 13個物件磷可用空間:652MB) B回我的電腦 請開啓命合提示字元(即DOS親窗)·切換至 JWSDP目錄 ex:cd c: Wsdp -1 O\bin 之後鍵入 jwsdponj2ee. bat %J2EE HOME% Jwsdp會對J2ee的RlI( Reference Implementation)做若干設定筆者發 現原本 RI Web Service Port由80008080:在J2ee目錄 Niblsystem多 了 endorsed目錄,整個過程需要一些時間
請開啟命令提示字元(即 DOS 視窗),切換至 JWSDP 目錄 ex: cd c:\jwsdp-1_0\bin 之後鍵入 jwsdponj2ee.bat %J2EE_HOME% Jwsdp 會對 J2ee 的 RI(Reference Implementation)做若干設定,筆者發 現原本 RI Web Service Port 由 8000 變為 8080;在 J2ee 目錄\lib\system 多 了 endorsed 目錄,整個過程需要一些時間…
榕案①辑巴檢①我的最爱)工具①說明 中上一真·→·国搜凸资料3×2 址①C2k!31 hib'ystemendorsed 移至取会四 育料夹 小型修政日期 圃动p3,139 KB Executabl.20275下午094 白 Documents and setting □] fornix □dk14001 cloudscape onnector L cloudscape Endorsed 類型!: Executable Jar file大小:306MB 306MB我的電眙 完成畫面如下 [copy] Copying 1 file to C: \wsdp-1-gWork\forj2ee [echo jaxm-remote preparation [] Expanding C: \jwsdp-1_webapps \jaxm-renote war into C: \jwsdp-1_8wo rk\forj2ee \jaxm-remote jar】 Building jar:c:、 usdp-1_ work\forj2ee、jaxn- remote.ar [jar] Warning: selected jar files inc lude a META-INF/MANI FEST. Mf which wil I be ignored(please ifest attribute to jar task) Lecho jaxm-soaprp preparation Lunwar] Expanding: C: \jwsdp-1_webapps \jaxm-soaprp war into C: \wsdp-1_8wwo Jar] Building jar: C: \usdp-1_wOrk\forJ2ee \axm-soaprpwar Larl Warning: selected jar files inc lude a META-INF/MANI FEST. MF which e ignored (please use manifest attribute to jar task) Lecho jstl-examples preparation Just copying to C: \jwsdp-1-0/work/for j2 [copy] Copying 1 file to C: \wsdp-1-gwork \for j2ee Lecho] registry-server preparation Just copying to C: \wsdp-1_8/work/forj [copy] Copying 1 file to C: \jwsdp-1-gwork \for j2ee UILD SUCCESSFUL otal time: 5 minutes 53 seconds 接下來利用ant工具對RI做相關設定如Jms, Database 切換至 Petstore目錄·輸入 set
完成畫面如下: 接下來利用 ant 工具對 RI 做相關設定,如 Jms,Databasee 切換至 Petstore 目錄,輸入 setup
下一步驟即是啓動資料庫· Petstore使用的資料庫是IBM的 Cloudscape4.0 指合如下 cloudscape-start C:C: WINN TSystem32cm 、 Documents and Settings \senshaw.S8NTEB00K桌面> cloudscape- start Mon Jul 15 21: 55: 04 CST 2002: [RniJdbc] Starting Cloudscape RmiJdbc Server Versil Mon Jul 15 21: 55: 08 CST 2002: [RniJdbc 1 COM cloudscape core. JDBCDriver registere in DriverManager Mon Jul 15 21: 55: 08 CST 2002: [RmiJdbc] Binding RmiJdbcServer Mon Jul 15 21: 55: 08 CST 2002: [RmiJdbc I No installation of RMI Security Manager Mon Jul 15 21: 55: 09 CST 2002: [RniJdbc l RmiJdbcServer bound in rmi registry 接下來要啓動RI,它是一個Jee內附練習參考用的 Application Server,知 名的J2 ee Application Server如 WebLogic, iPlanet都是由它發展出來的,命合如 j2ee-verbose C WINNTSystem32cmdexe inding DataSource, name jdbc/InventoryDB, url jdbc : cloudscape : rmi: Cloudsca DB: create=true Binding DataSource, name jdbc/DB1, url- jdbc:cloudscape :rmi: Cloudscape DB; creal e jdbc/XACloudscape, url- jdbc/XACloudscapexa jdbc/XACloudscape xa, dataSource COM cloudscapeco noteXaDataSourceC13be b5 tarting JMS service initialization complete waiting for client requests inding:< JMS Destination /Queue, javax. jms Queue inding:< JMS Destination jns/Topic, javax. jms Topic Binding:< JMS Cnx Factory jns/Topic Connection Factory, Topic No properties Binding:< JMS Cnx Factory queue Connection Factory, Queue, No prope ties inding:< JMS Cnx Factory jns/Queue Connection Factory, Queue No properties inding: JMS Cnx Factory Topic Connection Factory, Topic No properties Starting web service at port: 8080 Starting secure web service at port: 7000 2EE SDK/1.3.1 tarting web service at port: 9191 2EE SDK/1.3.1 2EE server startup complete
下一步驟即是啟動資料庫,Petstore 使用的資料庫是 IBM 的 Cloudscape 4.0, 指令如下: cloudscape -start 接下來要啟動 RI,它是一個 J2ee 內附練習參考用的 Application Server,知 名的 J2ee Application Server 如 WebLogic,iPlanet 都是由它發展出來的,命令如下: j2ee –verbose
最後一個安裝步驟了,將 Petstore元件部署至RI 開啓 DOS Command,切換目錄至 Petstore目錄 Webservices Microsoft Windows200版本5.88.2195 C)Copyright 1985-2000 Microsoft Corp D: \dir/ 磁碟區D中的磁碟沒有標鏑 磁碟區序:A8E2-65E Sybase_data] [J2ee13ex] Isapex] Ipetstore1.3.1] Ipro ject] [KM2 Proe ibex] Ipetstore1.3_01] 個目錄68372874位元可用 D: \>cd petstore1-31 D: \petstore1.3.1>cd we services D: \petstore1.3.1 \e services> 鍵入 setup deploy 磁碟區D中的磁碟沒有標籤 磁碟區序鐾:8E2-65E? 目錄:D: Sybase_data] [j2ee13exI Ipetstore1.3.1] Ipro ject] proe ibex】 [pet 1.3_11 檔案 8個目錄683728,784 组可用 Npetstore1.3.1>cd webservices D: \petstore1.3.1 \webservices>setup deploy Buildfile: setup. xmI deploy: [echo] Deploying ears a] Deploy the application in petstore ear on the server localhost savir he client jar as null [java] Sender object Deploy Tool Deploy PetStoreEAR on localhost 此時 Petstore會利用ant工具幫我們 compile*java,然後部署至RI上’完 成後讀者可在瀏覽器上輸人htp/ localhost:8o80 petstore’出現以下畫面就是大功 告成啦!
最後一個安裝步驟了,將 Petstore 元件部署至 RI: 開啟 DOS Command,切換目錄至 Petstore 目錄\webservices 鍵入 setup deploy 此時 Petstore 會利用 ant 工具幫我們 compile *.java,然後部署至 RI 上,完 成後讀者可在瀏覽器上輸入 http://localhost:8080/petstore,出現以下畫面就是大功 告成啦!
3 Java[tm] Pet Store Demo 13.1.Micr 榕案⑤横帽国提①的最要追工具①B明田 中上頁·→④的搜□我的最爱守媒昌·回回 钢址①)httplocalhost8080/petetore ◇移至連结 JavaTM Pet Store Demo 1.3.1 The JavaTM Pet Store De sample application brought to you by the Java M Blue Prints for the Enterpnse program at This sample application demonstrates how to use the capabilties of the J2EE platform to develop flexble, scalable, cros platform e-business applications. It comes with full source code and documentation, so you can experiment with J2EETM technology and learn how to use it to build your own enterpnse solutons To start using the demo, enter the store, yyou are using this demo for the very first time, the demo's database will be ted (Be prepared to wait for a while as the You may also forcefully repopulate the demo s database (Be prepared to wait for a while as the database is populated. About Java BluePrints for the Enterprise The Java BluePrints for the Enterprises program defines the application programming model for the J2EE M platform. It 完成 □□圈近端内部拥路 登入頁產生demo資料( Populateservlet 讀者若要再度啓動 Restore,請在 DOS Command下 loudscape-start 2ee-verbose 若要關閉 Petstore j2ee-stop cloudscape-stop 現在讓我們來體會一下 Petstore神奇的威力!啓動 Petstore後’在瀏覽器輸 人htp/ localhost:8080/ petstore,會出現以下畫面,我們暫且稱它鳥 Petstore說明 頁,以方便往後說明
登入頁產生 demo 資料(PopulateServlet) 讀者若要再度啟動 Pestore,請在 DOS Command 下: cloudscape –start j2ee –verbose 若要關閉 Petstore j2ee –stop cloudscape –stop 現在讓我們來體會一下 Petstore 神奇的威力!啟動 Petstore 後,在瀏覽器輸 入 http://localhost:8080/petstore,會出現以下畫面,我們暫且稱它為 Petstore 說明 頁,以方便往後說明