正在加载图片...
throw new ServiceLocator Exception(ne) i catch(Exception e)i throw new ServiceLocator Exception(e); /將本物件参考傳出 static public ServiceLocator getinstanceoi return me 以下略過. 上迒 Service locator建構子中運用 Collections的 Static Method(靜態函式) synchronizedMapo來產生 Hash Map容器依 J2SDK API文件說法’透過此函式 可產生出具同步化及安全執行緒的 HashMap容器 使用者基本資料瀏覽流程 現在讓我們進人主題- Petstore矞業邏輯’筆者以使用者基本資料瀏覽流程 爲例,請啓動 cloudscape資料庫 cloudscape-star C其rs产m2cmde \Documents and Settings \Adninistrator\ET>cloudscape -start Mon Sep 16 23: 21: 33 CST 2002: [RniJdbc] Starting Cloudscape RmiJdbc Server Versil Mon Sep 16 23: 21: 35 CST 2002: [RniJdbc 1 COM cloudscape core. JDBCDriver registere Mon Sep 16 23: 21: 35 CST 2002: [RniJdbc l Binding RmiJdbc Server Mon Sep 16 23: 21: 35 CST 2002: [RniJdbc No installation of RMI Security Manager Mon Sep 16 23: 21: 36 CST 2002: [RniJdbc l RmiJdbcServer bound in rmi registrythrow new ServiceLocatorException(ne); } catch (Exception e) { throw new ServiceLocatorException(e); } } //將本物件參考傳出 static public ServiceLocator getInstance() { return me; } 以下略過… } 上述 ServiceLocator 建構子中運用 Collections 的 Static Method(靜態函式) synchronizedMap()來產生 HashMap 容器,依 J2SDK API 文件說法,透過此函式 可產生出具同步化及安全執行緒的 HashMap 容器。 使用者基本資料瀏覽流程 現在讓我們進入主題-Petstore 商業邏輯,筆者以使用者基本資料瀏覽流程 為例,請啟動 cloudscape 資料庫: cloudscape –start
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有