FLEXʹÓÃjavaÁ¬½ÓÊý¾Ý¿â,Éú³ÉtreeÊ÷
×î½ü¼¸Ìì,Ò»Ö±ÔÚÑо¿flex,˵¾äʵÔÚµÄ,ÆäÖеĿàÄÕ²»ÊÇÒ»¾ä»°Á½¾ä»°ÄÜ˵Çå³þµÄ.ûÓнӴ¥¹ý°¡!²»¹ýÏÖÔÚ×ÜËãÊÇ°ÑÊý¾Ý¿âÁ¬ÉÏÁË,×ö³öÁË×Ô¼ºÏëÒªµÄ¶«Î÷.·Ï»°ÉÙ˵,ÏÖÔÚÄØ,ÎҾͰÑÎÒ×öµÄ´úÂëÌù³öÀ´,¸ø´ó¼Ò¿´¿´,¶àÌᱦ¹óÒâ¼û.
ÎÒÓõÄÊÇjdbcµÄÁ¬½Ó·½Ê½(hibernateµÄÁ¬½Ó·½Ê½ÎÒ¿´ÍøÉÏÓÐ,ËùÒԾͲ»Ìù³öÀ´ÁË)
1.flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="begin()">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import flash.events.MouseEvent;
import mx.controls.*;
public function begin():void{
getitem.Toxml();
}
[Bindable]
public var selectedNode:XML;
[Bindable]
public var XMLData:XMLList;
private function resultHandler(event:ResultEvent):void{
//textarea.text=event.result.toString();
XMLData = new XMLList(event.result.toString());
myTree.dataProvider = XMLData.folder;
}
public function DealFault(event:FaultEvent):void{
Alert.show(event.fault.toString());
trace(event.fault);
}
]]>
</mx:Script>
<mx:RemoteObject id="getitem" destination="getItem" showBusyCursor="true" endpoint="http://localhost:8080/firstFlex/messagebroker/amf/" fault="DealFault(event)" result="resultHandler(event)"/>
<mx:Tree id="myTree" labelField="@label" width="100%" height="100%"/>
</mx:Application>
ÔÚÕâÀïҪעÒâ,<mx:RemoteObject >Õâ¸ö±êÇ©,ÊÇÓÃÀ´Á¬½ÓÊý¾Ý¿âµÄ,ûÓÐËü¾Í²»¿ÉÄÜÁ¬ÉÏ.»¹ÓбêÇ©ÀïÃæµÄendpointÕâ¸öÊôÐÔ,ÊDZز»¿ÉÉÙµÄ,ËüµÄÖµÀ¶É«¼Ó´ÖµÄ²¿·ÖΪÏîÄ¿Ãû³Æ,»ÆÉ«¼Ó´ÖµÄ²¿·ÖÊÇÔÚÏîÄ¿web.xmlÖеÄ
<servlet-mapping>
<servlet-name>MessageBroke
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍ ......
½«±ðÈ˵ÄÏîÄ¿»òJAVAÎļþµ¼Èëµ½×Ô¼ºµÄEclipseÖÐʱ£¬³£³£»á³öÏÖJAVAÎļþµÄÖÐÎÄ×¢Êͱä³ÉÂÒÂëµÄÇé¿ö£¬Ö÷ÒªÔÒò¾ÍÊDZðÈ˵ÄIDE±àÂë¸ñʽºÍ×Ô¼ºµÄEclipse±àÂë¸ñʽ²»Í¬¡£
×ܽáÍøÉϵĽ¨ÒéºÍ×Ô¼ºµÄÌå»á£¬¿ÉÒԲο¼ÒÔϼ¸ÖÖ½â¾ö·½Ê½£º
1 ¸Ä±äÕû¸öÎļþÀàÐ͵ıàÂë¸ñʽ
1) eclipse->window->prefer ......
ÔÎÄ£ºDependency Injection in Java EE 6 – Part 1
×÷ÕߣºReza Rahman
³ö´¦£ºhttp://www.theserverside.com/tt/articles/article.tss?l=DependencyInjectioninJavaEE6
ÕâÒ»ÎÄÕÂϵÁнéÉÜÁËJava EEµÄÉÏÏÂÎĺÍÒÀÀµ×¢È루Contexts and Dependency Injection for Java EE£¬CDI£©£¬CDIÊǼ´½«Íê³ÉµÄJava EE 6Æ½Ì ......
ÎÒ¸Õ´ÓÔÚAntwerpÕÙ¿ªµÄDevoxx
´ó»áÉÏ»ØÀ´£¬»áÉϽéÉÜÁËJava7µÄÐÂÌØÐÔ£¬¶ÔÓ¦µÄJDK½«ÓÚ2010Äê9Ô·¢²¼¡£
ÏÂÃæÊÇ7¸öÒѾÍê³ÉµÄÐÂÌØÐÔ£º
¶ÔcollectionsµÄÓïÑÔ¼¶Ö§³Ö
×Ô¶¯×ÊÔ´¹ÜÀí
¸Ä½ø·ºÐÍÔÚ´´½¨ÊµÀýʱµÄÀàÐÍÒýÓÃ
´øÏ»®ÏßµÄÊý×Ö
ÔÚswitchÖÐʹÓÃString
¶þ½øÖÆÎÄ×Ö
¼ò»¯µÄ¿É±ä²ÎÊý·½·¨µ÷ÓÃ
Java7»¹ÓкܶàÆäËûµÄÐ ......