锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩在线看,日韩在线一区二区三区,亚洲成人最新网站http://www.aygfsteel.com/linlinyu/category/35094.htmllinlinyuzh-cnThu, 09 Oct 2008 18:58:40 GMTThu, 09 Oct 2008 18:58:40 GMT60Flex 璁塊棶 Ejb濡傛綆鍗?/title><link>http://www.aygfsteel.com/linlinyu/articles/233445.html</link><dc:creator>linlin yu</dc:creator><author>linlin yu</author><pubDate>Thu, 09 Oct 2008 13:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/linlinyu/articles/233445.html</guid><wfw:comment>http://www.aygfsteel.com/linlinyu/comments/233445.html</wfw:comment><comments>http://www.aygfsteel.com/linlinyu/articles/233445.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/linlinyu/comments/commentRss/233445.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/linlinyu/services/trackbacks/233445.html</trackback:ping><description><![CDATA[<ul type="1"> <li>寮濮嬩箣鍓?br /> 鍦?span id="linkeyes0" onclick="thunderdisplayarr[0].Click(0, 1000, event)" onmouseover="thunderdisplayarr[0].Display(0, event)" onmouseout="thunderdisplayarr[0].Hide(0)" style="border-bottom: 1px dashed; padding: 0pt; color: blue; text-decoration: underline; cursor: pointer; display: inline; float: none;">瀛︿範</span>鏈枃鍐呭涔嬪墠錛屼綘鑷沖皯瑕佽兘鐢↗AVA銆丒JB鍜孎lex鍐欏嚭Helloword榪欐牱綆鍗曠殑搴旂敤紼嬪簭錛屽茍涓斾笅杞藉畨瑁呬簡<span onclick="tagshow(event)" class="t_tag">Pomer</span>鍜岃繍琛岃繃PomerUserIndex.mxml錛屼絾涓嶄竴瀹氳浜嗚В<span onclick="tagshow(event)" class="t_tag">blazeds</span>鍜?span onclick="tagshow(event)" class="t_tag">lcds</span>銆傚鏋滈槄璇昏繃<a target="_blank">Pomer綆浠?/a>銆?a target="_blank">Pomer涓嬭澆涓庡畨瑁?/a>鍜?a target="_blank">Pomer鏋舵瀯浠嬬粛</a> 鏈夊姪浜庡涔犳湰鏂囥?br /> <br /> </li> <li>姒傝堪<br /> 鏈枃涓昏婕旂ず閫氳繃blazeds/lcds璁塊棶榪滅▼EJB錛孭omer妗嗘灦灝佽浜哹lazeds/lcds鐨勮闂紡錛岀敤鎴鋒棤欏繪坊鍔犻厤緗枃浠訛紝鍙』鍦‥JBDestinationRegister娉ㄥ唽鍗沖彲灝咼ava瀵硅薄鍙戝竷鎴恇lazeds/lcds鐨勮繙紼嬪璞★紙<span onclick="tagshow(event)" class="t_tag">RemoteObject</span>錛夛紝榪涜榪滅▼璁塊棶銆?br /> <br /> <br /> </li> <li>鏂板緩EJB欏圭洰騫跺鍔犱竴涓棤鐘舵佺殑SessionBean<br /> 鍦∕yeclipse涓浣曟柊寤哄拰甯冪講EJB涓嶅湪鏈瑙h寖鍥達紝鐢ㄦ埛鍙弬鐓yEclipse鐩稿叧甯姪鏂囨。銆?br /> 鐢ㄦ埛鑷繁寤轟竴涓狧elloEJB鐨凷essionBean錛屽茍澧炲姞public String hello(String name)鏂規硶; 紜HelloEJB鍙互琚繙紼嬭闂?br /> <br /> <br /> </li> <li>娉ㄥ唽EJB<br /> 鍦╟n.org.pomer.<span onclick="tagshow(event)" class="t_tag">flex</span>.remoting.services.EJBDestinationRegister鐨勬瀯閫犲嚱鏁板鍔燛JB娉ㄥ唽淇℃伅銆? <div id="wmqeeuq" class="blockcode"><em onclick="copycode($('code0'));">澶嶅埗鍐呭鍒板壀璐存澘</em> <h5>浠g爜:</h5> <code id="code0">public EJBDestinationRegister() {<br /> super();<br /> this.list = new ArrayList<EJBDestination>();<br /> <br /> //add here<br /> add("helloEJB", "HelloServicesImpl/remote");<br /> }</code></div> </li> <li>鏂板緩Flex搴旂敤HelloEJB.mxml <div id="wmqeeuq" class="blockcode"><em onclick="copycode($('code1'));">澶嶅埗鍐呭鍒板壀璐存澘</em> <h5>浠g爜:</h5> <code id="code1"><?xml version="1.0" encoding="utf-8"?><br /> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"><br /> <mx:Script><br /> <![CDATA[<br /> import mx.controls.Alert;<br /> import mx.rpc.events.ResultEvent;<br /> import mx.rpc.events.FaultEvent;<br /> private function helloClick():void{<br /> helloSpring.hello("pomer");<br /> }<br /> private function helloEJBFault(e:FaultEvent):void{<br /> Alert.show(e.fault.message.toString());<br /> }<br /> private function helloEJBResult(e:ResultEvent):void{<br /> Alert.show(e.result as String);<br /> }<br /> ]]><br /> </mx:Script><br /> <br /> <mx:RemoteObject endpoint="../messagebroker/amf"<br /> id="helloEJB"<br /> fault="helloEJBFault(event)"<br /> result="helloEJBResult(event)"<br /> destination="helloEJB" showBusyCursor="true"/><br /> <br /> <br /> <mx:Button label="hello" click="helloClick();"/><br /> </mx:Application></code></div> </li> <li>甯冪講榪愯<br /> <ul><br /> <li>鍚姩Tomcat錛屾棩蹇楀嚭鐜板涓嬫爣璁幫紝甯冪講鎴愬姛<br /> </li> </ul> <br /> <img src="http://lh5.ggpht.com/yulinlincom/SOHriiRFAmI/AAAAAAAAAeA/LYqr1lhJuN8/hello-ejb-tomcat.JPG" onclick="zoom(this, this.src)" onload="attachimg(this, 'load')" alt="" border="0" /><br /> <ul><br /> <li>鍙沖嚮HelloJava.mxml->Run as->Flex application<br /> </li> </ul> <br /> <br /> <br /> </li> <li>鍘熺悊鍒嗘瀽<br /> 鏌ョ湅WEB-INF\flex\services- config.xml錛孍JBRemotingDestinationBootstrapService綾諱粠 EJBDestinationRegister綾誨緱鍒版墍鏈夎榪滅▼璁塊棶鐨凟jb錛岃嚜鍔ㄥ姞鍏ユ湇鍔′腑銆侲JBFactory鏍規嵁 EJBDestinationRegister鎻愪緵鐨勫唴瀹硅嚜鍔ㄥ垱寤鴻繙紼嬪璞°?br /> <img src="http://lh4.ggpht.com/yulinlincom/SOHrjEouEII/AAAAAAAAAeY/ryw0XRxRztU/hello-ejb.JPG" onclick="zoom(this, this.src)" onload="attachimg(this, 'load')" alt="" border="0" /></li> </ul> <img src ="http://www.aygfsteel.com/linlinyu/aggbug/233445.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/linlinyu/" target="_blank">linlin yu</a> 2008-10-09 21:32 <a href="http://www.aygfsteel.com/linlinyu/articles/233445.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">高唐县</a>| <a href="http://" target="_blank">奉化市</a>| <a href="http://" target="_blank">盐亭县</a>| <a href="http://" target="_blank">潮州市</a>| <a href="http://" target="_blank">桂平市</a>| <a href="http://" target="_blank">东辽县</a>| <a href="http://" target="_blank">南部县</a>| <a href="http://" target="_blank">东海县</a>| <a href="http://" target="_blank">鹤峰县</a>| <a href="http://" target="_blank">康乐县</a>| <a href="http://" target="_blank">富阳市</a>| <a href="http://" target="_blank">惠来县</a>| <a href="http://" target="_blank">琼海市</a>| <a href="http://" target="_blank">渭南市</a>| <a href="http://" target="_blank">德清县</a>| <a href="http://" target="_blank">曲阜市</a>| <a href="http://" target="_blank">当阳市</a>| <a href="http://" target="_blank">砚山县</a>| <a href="http://" target="_blank">南川市</a>| <a href="http://" target="_blank">信宜市</a>| <a href="http://" target="_blank">武城县</a>| <a href="http://" target="_blank">朝阳市</a>| <a href="http://" target="_blank">顺平县</a>| <a href="http://" target="_blank">彩票</a>| <a href="http://" target="_blank">兰州市</a>| <a href="http://" target="_blank">新龙县</a>| <a href="http://" target="_blank">广饶县</a>| <a href="http://" target="_blank">二手房</a>| <a href="http://" target="_blank">临武县</a>| <a href="http://" target="_blank">涟水县</a>| <a href="http://" target="_blank">万州区</a>| <a href="http://" target="_blank">教育</a>| <a href="http://" target="_blank">肇州县</a>| <a href="http://" target="_blank">江油市</a>| <a href="http://" target="_blank">英吉沙县</a>| <a href="http://" target="_blank">延津县</a>| <a href="http://" target="_blank">庆城县</a>| <a href="http://" target="_blank">延吉市</a>| <a href="http://" target="_blank">津市市</a>| <a href="http://" target="_blank">延安市</a>| <a href="http://" target="_blank">中西区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>