資源簡介
Java實戰項目源碼音樂網站。只提供Java代碼,服務器,以及建站需要自己動手學習

代碼片段和文件信息
package?music.client;?
import?java.util.*;
import?javax.naming.*;
import?javax.rmi.*;
import?music.ejb.*;
import?music.ejb.db.*;
import?music.shared.*;
public?class?Client??{
????void?initData()?throws?Exception?{
????????MusicManageRemote?manage?=?getMusicManageRemote();
????????//?create?some?categories:
????????int?chs_id?=?manage.newCategory(0?“Chinese“);
????????int?eng_id?=?manage.newCategory(0?“English“);
????????int?female_id?=?manage.newCategory(eng_id?“Female“);
????????manage.newCategory(eng_id?“Male“);
????????manage.newCategory(eng_id?“Other“);
????????//?create?some?artists:
????????int?dido_id?=?manage.newArtist(female_id?new?ArtistVO(0?“Dido“?Boolean.TRUE?null));
????}
????void?testGetCategories(int?parentCategoryId)?throws?Exception?{
????????MusicViewRemote?view?=?getMusicViewRemote();
????????Collection?c?=?view.getCategories(parentCategoryId);
????????Iterator?it?=?c.iterator();
????????while(it.hasNext())
????????????System.out.print(it.next().toString());
????}
????public?static?void?main(String[]?args)?throws?Exception?{
????????Client?client?=?new?Client();
????????//client.initData();
????????//client.testGetCategories(0);
????????Collection?c?=?client.getMusicViewRemote().searchSongs(“white“);
????????Iterator?it?=?c.iterator();
????????while(it.hasNext())
????????????System.out.println(it.next().toString());
????}
????MusicViewRemote?getMusicViewRemote()?throws?Exception?{
????????Hashtable?ht?=?new?Hashtable();
????????ht.put(Context.INITIAL_CONTEXT_FACTORY?“weblogic.jndi.WLInitialContextFactory“);
????????ht.put(Context.PROVIDER_URL?“t3://localhost:7001“);
????????Context?ctx?=?new?InitialContext(ht);
????????object?obj?=?ctx.lookup(“ejb/MusicView“);
????????MusicViewRemoteHome?home?=?(MusicViewRemoteHome)PortableRemoteobject.narrow(obj?MusicViewRemoteHome.class);
????????return?home.create();
????}
????MusicManageRemote?getMusicManageRemote()?throws?Exception?{
????????Hashtable?ht?=?new?Hashtable();
????????ht.put(Context.INITIAL_CONTEXT_FACTORY?“weblogic.jndi.WLInitialContextFactory“);
????????ht.put(Context.PROVIDER_URL?“t3://localhost:7001“);
????????Context?ctx?=?new?InitialContext(ht);
????????object?obj?=?ctx.lookup(“ejb/MusicManage“);
????????MusicManageRemoteHome?home?=?(MusicManageRemoteHome)PortableRemoteobject.narrow(obj?MusicManageRemoteHome.class);
????????return?home.create();
????}
}?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1270272??2004-04-14?15:56??2005621114504\db\msdb.bak
?????目錄??????????0??2005-06-21?15:32??2005621114504\db
?????文件?????????91??2004-04-14?16:24??2005621114504\readme.txt
?????文件?????????27??2004-04-01?23:19??2005621114504\src\Music\.beabuild.txt
????..AD...?????????0??2004-04-14?16:31??2005621114504\src\Music\.workshop\.ide\MusicClient\compilerCache
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\.ide\MusicClient
????..AD...?????????0??2004-04-14?16:31??2005621114504\src\Music\.workshop\.ide\MusicEjb\compilerCache
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\.ide\MusicEjb
????..AD...?????????0??2004-04-14?16:31??2005621114504\src\Music\.workshop\.ide\MusicWeb\compilerCache
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\.ide\MusicWeb
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\.ide
?????文件??????????0??2004-04-14?16:17??2005621114504\src\Music\.workshop\MusicWeb\.wlwExtBuild.txt
?????文件???????2518??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\GenericStatelessSLSBContAdpt.class
?????文件????????303??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\GenericStatelessSLSBContHome.class
?????文件????????634??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\GenericStatelessSLSBContImpl.class
?????文件???????2143??2004-04-14?16:15??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\GenericStatelessSLSBContImpl.ejbbean
?????文件????????589??2004-04-14?16:15??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\GenericStatelessSLSBContImpl.wlbean
?????文件????????504??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\GenericStatelessSLSBContIntf.class
?????文件???????4881??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\StatelessContainer_ly05hg_ELOImpl.class
?????文件???????2748??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\StatelessContainer_ly05hg_Impl.class
?????文件???????1254??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\StatelessContainer_ly05hg_Intf.class
?????文件???????2732??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen\StatelessContainer_ly05hg_LocalHomeImpl.class
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea\wlwgen
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com\bea
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\com
?????文件???????2757??2004-04-14?16:15??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\me
?????文件???????1221??2004-04-14?16:15??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\me
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\me
?????文件????????309??2004-04-14?16:16??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless\_WL_GENERATED
????..AD...?????????0??2005-06-21?15:28??2005621114504\src\Music\.workshop\MusicWeb\EJB\GenericStateless
............此處省略312個文件信息
- 上一篇:JAVA 常用的jar包(全)
- 下一篇:struts2的12個基本jar文件
評論
共有 條評論