锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久精品综合,亚洲色图一区二区三区,久久视频免费http://www.aygfsteel.com/xzclog/category/15440.htmlzh-cnSat, 28 Nov 2015 12:40:58 GMTSat, 28 Nov 2015 12:40:58 GMT60Eclipse鏃犳硶璋冭瘯鍙婄紪璇戞椂鍐呭瓨涓嶈凍鐨勮В鍐?/title><link>http://www.aygfsteel.com/xzclog/archive/2015/11/26/428370.html</link><dc:creator>xzc</dc:creator><author>xzc</author><pubDate>Thu, 26 Nov 2015 07:56:00 GMT</pubDate><guid>http://www.aygfsteel.com/xzclog/archive/2015/11/26/428370.html</guid><wfw:comment>http://www.aygfsteel.com/xzclog/comments/428370.html</wfw:comment><comments>http://www.aygfsteel.com/xzclog/archive/2015/11/26/428370.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xzclog/comments/commentRss/428370.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xzclog/services/trackbacks/428370.html</trackback:ping><description><![CDATA[<span id="wmqeeuq" class="Apple-style-span" style="color: #333333; font-family: Arial; font-size: 16px; line-height: 26px; background-color: #ffffff; "><p>杞嚜錛?div style="display: inline-block; "></div></p></span><span id="wmqeeuq" class="Apple-style-span" style="color: #333333; font-family: Arial; font-size: 16px; line-height: 26px; background-color: #ffffff; "><a >http://blog.csdn.net/caihaijiang/article/details/5903154</a></span><span id="wmqeeuq" class="Apple-style-span" style="color: #333333; font-family: Arial; font-size: 16px; line-height: 26px; background-color: #ffffff; "><p>Eclipse涓婦ebug鏃訛紝寮瑰嚭閿欒鎻愮ず錛?#8220;Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes”錛屾棤娉曡繘琛岃皟璇曘?/p><p> </p><p>閬囧埌榪欎釜閿欒鏃舵壘鍒扮殑瑙g瓟鏂規姹囨伙細</p><p>1銆佷慨鏀?span class="hilite5">Eclipse</span>鐨刯ava緙栬瘧鍣ㄤ嬌鐢╦dk錛岃屼笉鏄痡re錛?br />2銆佷嬌鐢ˋnt緙栬瘧鏃訛紝鏈墦寮debug寮鍏籌紝鍦ㄥ啓javac 浠誨姟鏃訛紝璁劇疆debug="true"錛屽惁鍒欎笉鑳借皟璇曘俆He settings for the <span id="wmqeeuq" class="hilite5">eclipse</span> compiler don't affect the ant build and even if you launch the ant build from within<span id="wmqeeuq" class="hilite5">eclipse</span>. ant controls it's own compiler settings.you can tell ant to generate debugging info like this 'javac ... debug="true".../>錛涳紙鎴戦亣鍒扮殑闂錛屾槸閲囩敤榪欎釜鍔炴硶瑙e喅鐨勶級<br />3銆佺紪璇戝櫒鐨勮緗棶棰橈紝window->preferences->java->Compiler鍦╟ompiler璧峰欏碉紝classfile Generation鍖哄煙涓‘璁ゅ凡緇忓嬀閫変簡All line number attributes to generated class files銆傚鏋滃凡緇忓嬀閫夛紝浠庢柊鏉ヤ竴涓嬪啀Apply涓涓嬨傛垨鑰呬粠欏圭洰灞傛榪涜璁懼畾錛岄」鐩睘鎬?>java compiler鍚屾牱鍦ㄨ搗濮嬮〉錛岀‘瀹氬凡緇忓嬀閫夈?/p><p> </p><p> </p><p>Eclipse緙栬瘧鏃跺嚭鐜癘utof Memory闂錛岃В鍐沖姙娉曞涓嬶細</p><p>window->preferences->java->Installed JREs錛岄夋嫨瀹夎鐨刯re錛堝jdk1.5.0錛夛紝鍗曞嚮鍙寵竟鎸夐挳“Edit”錛屽脊鍑?#8220;Edit JRE”鐨勫璇濇錛屽湪Default VM Argument鐨勮緭鍏ユ涓緭鍏ワ細-Xmx512m錛岀劧鍚庢寜紜畾錛屽嵆鍙?-Xms鏄瀹氭渶灝忓唴瀛橈紝-Xmx鏄瀹氭渶澶у唴瀛橈級</p></span><img src ="http://www.aygfsteel.com/xzclog/aggbug/428370.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xzclog/" target="_blank">xzc</a> 2015-11-26 15:56 <a href="http://www.aygfsteel.com/xzclog/archive/2015/11/26/428370.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍥捐Вeclipse+myelcipse寮鍙慐JB http://www.aygfsteel.com/xzclog/archive/2006/08/14/63403.htmlxzcxzcMon, 14 Aug 2006 02:13:00 GMThttp://www.aygfsteel.com/xzclog/archive/2006/08/14/63403.htmlhttp://www.aygfsteel.com/xzclog/comments/63403.htmlhttp://www.aygfsteel.com/xzclog/archive/2006/08/14/63403.html#Feedback0http://www.aygfsteel.com/xzclog/comments/commentRss/63403.htmlhttp://www.aygfsteel.com/xzclog/services/trackbacks/63403.html閰嶇疆Weblogic9.0
聽聽聽
聽聽聽 棣栧厛闇瑕侀厤緗ソeclipse銆傛垜榪欓噷涓昏璇存槑weblogic鐨勯厤緗?br />聽聽聽聽ejb19.jpg

聽聽聽 娉ㄦ剰JDK閫夋嫨JDK5.0鐨勭増鏈?/font>
聽聽聽
聽聽聽 欏轟究灝唚eblogic8鐨勯厤緗篃璐翠笂鏉ワ紝渚涘ぇ瀹舵瘮杈冨弬鑰?br />聽聽聽 ejb18.jpg
聽聽聽
聽聽聽 娉ㄦ剰weblogic8鐨凧DK鐗堟湰蹇呴』鏄疛DK1.4銆?/font>
聽聽聽
聽聽聽 鎺ヤ笅鏉ュ氨寮濮嬫垜浠殑寮鍙戜簡銆?br />
ejb1.jpg

ejb2.jpg

ejb3.jpg

ejb4.jpg

ejb5.jpg

涓嬮潰灝辨槸SessionBean鐨勪唬鐮?br />
30

鍏跺疄灝辨槸淇敼浜嗗叾涓殑涓涓柟娉曪細
聽1/**
聽2聽聽聽聽聽*聽An聽example聽business聽method
聽3聽聽聽聽聽*
聽4聽聽聽聽聽*聽@ejb.interface-method聽view-type聽=聽"remote"
聽5聽聽聽聽聽*聽
聽6聽聽聽聽聽*聽@throws聽EJBException聽Thrown聽if聽method聽fails聽due聽to聽system-level聽error.
聽7聽聽聽聽聽*/
聽8聽聽聽聽public聽String聽hello()聽throws聽EJBException聽{
聽9聽聽聽聽聽聽聽聽//聽rename聽and聽start聽putting聽your聽business聽logic聽here
10聽聽聽聽聽聽聽聽returnnew聽String("HelloEJBWorld!");
11聽聽聽聽}
娉ㄦ剰錛氫唬鐮佷腑鐨勮В閲婃枃瀛椾笉瑕佸垹闄わ紝鍥犱負XDoclet闇瑕併?/u>

閰嶇疆灞炴?br />ejb6.jpg

娣誨姞weblogic.jar銆傛垜鐨勮礬寰勬槸錛歜ea\weblogic90\server\lib\weblogic.jar
ejb16.jpg

ejb7.jpg

ejb8.jpg

ejb9.jpg

ejb10.jpg

ejb11.jpg

ejb12.jpg

ejb13.jpg

ejb14.jpg

ejb15.jpg

灝變笅鏉ュ啓EJBTest綾伙細
聽1package聽com;
聽2
聽3import聽java.rmi.RemoteException;
聽4import聽java.util.Properties;
聽5
聽6import聽javax.ejb.CreateException;
聽7import聽javax.naming.Context;
聽8import聽javax.naming.InitialContext;
聽9import聽javax.naming.NamingException;
10
11import聽com.interfaces.HelloWorld;
12import聽com.interfaces.HelloWorldHome;
13
14publicclass聽EJBTest聽{
15
16聽聽聽聽/**
17聽聽聽聽聽*聽@param聽args
18聽聽聽聽聽*/
19聽聽聽聽publicstaticvoid聽main(String[]聽args)聽{
20聽聽聽聽聽聽聽聽//聽TODO聽鑷姩鐢熸垚鏂規硶瀛樻牴
21聽聽聽聽聽聽聽聽Properties聽properties=new聽Properties();
22聽聽聽聽聽聽聽聽properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
23聽聽聽聽聽聽聽聽properties.setProperty(Context.PROVIDER_URL,"t3://localhost:7001");
24聽聽聽聽聽聽聽聽
25聽聽聽聽聽聽聽聽Context聽context;
26聽聽聽聽聽聽聽聽try聽{
27聽聽聽聽聽聽聽聽聽聽聽聽context聽=new聽InitialContext(properties);
28聽聽聽聽聽聽聽聽聽聽聽聽HelloWorldHome聽hwh=(HelloWorldHome)context.lookup("ejb/HelloWorld");
29聽聽聽聽聽聽聽聽聽聽聽聽HelloWorld聽hw=hwh.create();
30聽聽聽聽聽聽聽聽聽聽聽聽String聽s=hw.hello();
31聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(s);
32聽聽聽聽聽聽聽聽}聽catch聽(NamingException聽e)聽{
33聽聽聽聽聽聽聽聽聽聽聽聽//聽TODO聽鑷姩鐢熸垚聽catch聽鍧?/span>
34聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();
35聽聽聽聽聽聽聽聽}聽catch聽(RemoteException聽e)聽{
36聽聽聽聽聽聽聽聽聽聽聽聽//聽TODO聽鑷姩鐢熸垚聽catch聽鍧?/span>
37聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();
38聽聽聽聽聽聽聽聽}聽catch聽(CreateException聽e)聽{
39聽聽聽聽聽聽聽聽聽聽聽聽//聽TODO聽鑷姩鐢熸垚聽catch聽鍧?/span>
40聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();
41聽聽聽聽聽聽聽聽}
42聽聽聽聽聽聽聽聽
43聽聽聽聽}
44
45
46}
47


鏈鍚庡氨鏄湅緇撴灉浜嗭紝鍏堝惎鍔╳eblogic錛岀劧鍚庤繍琛孍JBTest紼嬪簭銆?br />
ejb17.jpg


xzc 2006-08-14 10:13 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 永兴县| 咸宁市| 株洲县| 平度市| 公主岭市| 临西县| 朝阳区| 鄱阳县| 梓潼县| 清水河县| 修武县| 雷波县| 雷州市| 浦北县| 桃源县| 井冈山市| 德清县| 偏关县| 卢龙县| 宕昌县| 德阳市| 扬中市| 军事| 成都市| 南京市| 澎湖县| 文登市| 区。| 白山市| 岑巩县| 博野县| 当涂县| 谷城县| 石泉县| 梅河口市| 黎川县| 浏阳市| 鄂州市| 保康县| 偃师市| 万安县|