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> &
Ïà¹ØÎĵµ£º
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......
ʹÓÃiTextÀ´²ð·ÖpdfÎļþÏà±ÈPDFBOXÒª¸´ÔÓÒ»µã¡£ÒÔÏÂʾÀýʵÏÖÁ˲ð·ÖPDFÎļþΪµ¥Ò³Îļþ£¬²¢±£´æΪ“ÎļþÃû-n.pdf”µÄÎļþ£º
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentExce ......
ÎÒÃÇÊ×ÏÈÀ´¿´Ò»¶Î´úÂ룺
Java´úÂë £º
String str=new String("abc");
½ô½Ó×ÅÕâ¶Î´úÂëÖ®ºóµÄÍùÍùÊÇÕâ¸öÎÊÌ⣬ÄǾÍÊÇÕâÐдúÂ뾿¾¹´´½¨Á˼¸¸öString¶ÔÏóÄØ£¿Ïà
ÐÅ´ó¼Ò¶ÔÕâµÀÌâ²¢²»Ä°Éú£¬´ð°¸Ò²ÊÇÖÚËùÖÜÖªµÄ£¬2¸ö¡£½ÓÏÂÀ´ÎÒÃǾʹÓÕâµÀÌâÕ¹¿ª£¬Ò»Æð
»Ø¹ËÒ»ÏÂÓë´´½¨String¶ÔÏóÏà¹ØµÄһЩJAVA֪ʶ¡£
ÎÒÃÇ¿ÉÒÔ°ÑÉÏÃæÕâÐдúÂë· ......
×î½üÔÚÑо¿flex¼¼Êõ£¬flexºÍflashµÄ½»»¥£¬flexºÍJavaµÄͨÐÅ¡£Ï±ßÊÇÒ»¸öflex¿ØÖÆswfÎļþÖÐÔª¼þµÄ·¶Àý£¬¸Õ½Ó´¥flex£¬ÈçÓв»¶ÔµÄµØ·½£¬´ó¼Ò¶àÌáÒâ¼û¡£
mxmlÎļþ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
&n ......