Java+FlexÕûºÏÓ¦Óüòµ¥Ê¾Àý (mx:RemoteObject)
1.java
Java´úÂë
package com;
public class LoginDemo {
public String validate(String username,String password){
String message ="login failed!";
if(username.equals("lin")&&password.equals("lin")){
message = "login successed!";
}
return message;
}
}
package com; public class LoginDemo { public String validate(String username,String password){ String message ="login failed!"; if(username.equals("lin")&&password.equals("lin")){ message = "login successed!"; } return message; } }
2.remoting-config.xml
Java´úÂë
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels> &
Ïà¹ØÎĵµ£º
Google
¡¢
VMware
ÈÃ
Java
¿¸ÆðÔÆ¼ÆËã´óÆì
ͨ¹ýÓë
Google
¡¢
Salesforce.com
µÈ
ÆóÒµ
µÄºÏ×÷£¬ÐéÄ⻯³§ÉÌ
VMware
ÕýÔÚŬÁ¦Ê¹
ÔÆ¼ÆËã
±äµÃ¸üΪÇáÁ¿¡¢¿ÉÒÆÖ²£¬ÒÔ·ûºÏ¿Í»§µÄÒªÇó¡£
Èç¹ûÓÐÈËÎÊ
Java
²úÆ·¹©Ó¦É̶¼ÓÐÄÄЩ£¿
EMC
µÄ×Ó¹«Ë¾
VMware
µÄÅÅÃû¾ø¶Ô²»»á¿¿Ç°¡£¶Ô´ó¶àÊýÈËÀ´Ëµ£¬
V ......
¡¡¡¡ÅÅÐòÊǼÆËã»úÄÚ¾³£½øÐеÄÒ»ÖÖ²Ù×÷£¬ÆäÄ¿µÄÊǽ«Ò»×é“ÎÞÐò”µÄ¼Ç¼ÐòÁе÷ÕûΪ“ÓÐÐò”µÄ¼Ç¼ÐòÁС£·ÖÄÚ²¿ÅÅÐòºÍÍⲿÅÅÐò¡£ÈôÕû¸öÅÅÐò¹ý³Ì²»ÐèÒª·ÃÎÊÍâ´æ±ãÄÜÍê³É£¬Ôò³Æ´ËÀàÅÅÐòÎÊÌâΪÄÚ²¿ÅÅÐò¡£·´Ö®£¬Èô²Î¼ÓÅÅÐòµÄ¼Ç¼ÊýÁ¿ºÜ´ó£¬Õû¸öÐòÁеÄÅÅÐò¹ý³Ì²»¿ÉÄÜÔÚÄÚ´æÖÐÍê³É£¬Ôò³Æ´ËÀàÅÅÐòÎÊÌâΪÍⲿÅÅÐò ......
ÎÒÃÇÊ×ÏÈÀ´¿´Ò»¶Î´úÂ룺
Java´úÂë £º
String str=new String("abc");
½ô½Ó×ÅÕâ¶Î´úÂëÖ®ºóµÄÍùÍùÊÇÕâ¸öÎÊÌ⣬ÄǾÍÊÇÕâÐдúÂ뾿¾¹´´½¨Á˼¸¸öString¶ÔÏóÄØ£¿Ïà
ÐÅ´ó¼Ò¶ÔÕâµÀÌâ²¢²»Ä°Éú£¬´ð°¸Ò²ÊÇÖÚËùÖÜÖªµÄ£¬2¸ö¡£½ÓÏÂÀ´ÎÒÃǾʹÓÕâµÀÌâÕ¹¿ª£¬Ò»Æð
»Ø¹ËÒ»ÏÂÓë´´½¨String¶ÔÏóÏà¹ØµÄһЩJAVA֪ʶ¡£
ÎÒÃÇ¿ÉÒÔ°ÑÉÏÃæÕâÐдúÂë· ......
eclipseÒ»¸öÏîÄ¿ÖÐͬʱ¿ª·¢flexºÍj2eeµÄ»·¾³ÅäÖÃ
ÒòΪ¹¤×÷ÐèÒª£¬Ñ§ÁËÒ»ÖÜflex½ñÌ쿪ʼÑо¿Óë·þÎñÆ÷ͨÐÅ£¬Ñ¡ÔñÁËÃâ·ÑµÄBlazeDS¡£ÓÉÓÚ֮ǰ×öÏîÄ¿ÓõÄÊÇeclipse europa£¬¾Í°Ñflex builder 3 pluginÖ±½Ó°²×°µ½ÔÓеÄeclipseÉÏÁË£¬ÕâÑùÔÙÅäÖõÄʱºò¿Í»§¶Ë±à³ÌÓõÄflexºÍ·þÎñÆ÷¶ËµÄJ2EE¾ÍÄÜÕûºÏµ½Ò»¸ö¹¤³ÌÏÂÁË£¬Ï£Íû¶ÔÓÚÔÝʱÓÉjs ......
Spring IoCµÄÖ÷Ҫ˼ÏëÊÇʹÓÃÈÝÆ÷À´ÊµÀý»¯×é¼þ£¨²¢¸ø×é¼þ×¢ÈëËùÒÀÀµµÄ£©¡£µ«ÊÇÒ»°ãÇé¿öÏ£¬ÓÉFlex¿Í»§¶ËËùÔ¶³Ì·ÃÎʵÄ×é¼þÊÇÔÚ·þÎñÆ÷ÖÐÓÉBlazedsÀ´ÊµÀý»¯µÄ¡£Òò´ËÅäÖÃBlazeDSÀ´ÈÃSpringÈÝÆ÷¸ºÔðʵÀý»¯Spring beans¡£BlazeDSÖ§³Ö¹¤³§µÄ¸ÅÄîÀ´Ê¹µÃÕâÖÖ×Ô¶¨Òå×é¼þ¿ÉÒÔʵÀý»¯¡£¹¤³§µÄ×÷Óýö½öÊÇÏòBlazeDSÌá¹©Ò ......