ÕâÊÇ×î¼òµ¥µÄJAVAÓëFlexͨÐųÌÐò£¬»ù±¾ÉÏÊÇÈëÃÅÆª£¬Ê¹ÓõÄÊÇFlex×Ô´øµÄRemoteObject£¬µ±È»ÄãÒ²¿ÉÒÔʹÓÃhessian£¬½øÈëÕýÌâ
1.н¨Ò»¸öFlex web¹¤³Ì,£¨ÎÒÓõĻ·¾³ÊÇMyEclipse¼¯³ÉFlex»·¾³£¬·þÎñÆ÷Tomcat£©£¬Èç¹û²»»áEmail¸øÎÒ526554567@qq.com
2.н¨Ò»¸öJAVAÀ࣬ÓÃÓÚFlexÀ´Ô´³Æµ÷ÓõĴúÂëÈçÏ£º
package com.cneric.blog.flex;
public class TestJava2Flex {
public String sayHello(String words){
System.out.println("hello!"+words);
return "hello!"+words;
}
}
ÕâÒ»²½Ã»Ê²Ã´¿É˵µÄ£¬×¢ÒâµÄ¾ÍÊǰüÃû±ðŪ´íµÄ£¬Ä㽨µÄÊÇʲô°ü£¬¾Íдʲô
3.ÔÚFlexÅäÖúÃдºÃµÄJAVAÀ࣬ÕâÒ»²½Ò»¶¨µÃÓУ¬ÅäÖúܼòµ¥£¬ÈçÏÂ
<destination id="java2Flex">
<properties>
<source>com.cneric.blog.flex.TestJava2Flex</source>
</properties>
</destination>
ÕâÀïdestination±êÇ©ÖеÄidËæ±ãÆð£¬Ö»Òª²»ÒªºÍÆäËûµÄÖØ¸´¾ÍÐÐÁË£¬ÒòΪFlexÒ³ÃæÉϵ÷ÓÃJAVAÀàµÄ»°
¾ÍÊÇ¿¿Õâ¸öIDÀ´Ê¶±ðµÄ
4.½ÓמÍÊÇн¨Ò»¸öFlexÓ¦ÓóÌÐòµ÷ÓÃÁË£¬³ÌÐòºÜ¼òµ¥£¬´ó¼Ò½¨Ò»¸öFlexÓ¦ÓóÌÐòÈ»ºó¿½±´ÏÂÃæ´úÂë¾Í¿ÉÒÔÁË
<?xml versi ......
Java Class files contain lots of symbolic information stored in constant pool sector, including all variable names and method names. This symbolic information allows Java decompilers to reconstruct the source code easily. Without protection, anyone could use a Java decompiler to get the Java source code. According to its special characters and threats, there are the following available protection mechanisms in the market to prevent from tamper or piracy.
• Hardware-based protection
Use smart card or other chip types to embed the Java virtual machine engine in the hardware. The Java Class file will be downloaded into the hardware, and the protected application will call the token to retrieve the output parameters via sending the input parameters, and the Class file will be interpreted and executed internally. The performance and functions of this method will be restricted and impacted by the hardware configuration such as memory space, RAM, CPU, and so on.
&bu ......
Ò»¡¢PO:persistant object ³Ö¾Ã¶ÔÏó,¿ÉÒÔ¿´³ÉÊÇÓëÊý¾Ý¿âÖеıíÏàÓ³ÉäµÄjava¶ÔÏó¡£×î¼òµ¥µÄPO¾ÍÊǶÔÓ¦Êý¾Ý¿âÖÐij¸ö±íÖеÄÒ»Ìõ¼Ç¼£¬¶à¸ö¼Ç¼¿ÉÒÔÓÃPOµÄ¼¯ºÏ¡£POÖÐÓ¦¸Ã²»°üº¬ÈκζÔÊý¾Ý¿âµÄ²Ù×÷¡£
¶þ¡¢VO:value objectÖµ¶ÔÏó¡£Í¨³£ÓÃÓÚÒµÎñ²ãÖ®¼äµÄÊý¾Ý´«µÝ£¬ºÍPOÒ»ÑùÒ²Êǽö½ö°üº¬Êý¾Ý¶øÒÑ¡£µ«Ó¦ÊdzéÏó³öµÄÒµÎñ¶ÔÏó,¿ÉÒԺͱí¶ÔÓ¦,Ò²¿ÉÒÔ²»,Õâ¸ù¾ÝÒµÎñµÄÐèÒª.¸öÈ˾õµÃͬDTO(Êý¾Ý´«Êä¶ÔÏó),ÔÚwebÉÏ´«µÝ¡£
Èý¡¢DAO:data access object Êý¾Ý·ÃÎʶÔÏó£¬ÊÇÒ»¸ösunµÄÒ»¸ö±ê×¼j2eeÉè¼ÆÄ£Ê½ £®´Ë¶ÔÏóÓÃÓÚ·ÃÎÊÊý¾Ý¿â¡£Í¨³£ºÍPO½áºÏʹÓã¬DAOÖаüº¬Á˸÷ÖÖÊý¾Ý¿âµÄ²Ù×÷·½·¨¡£Í¨¹ýËüµÄ·½·¨,½áºÏPO¶ÔÊý¾Ý¿â½øÐÐÏà¹ØµÄ²Ù×÷¡£¼ÐÔÚÒµÎñÂß¼ÓëÊý¾Ý¿â×ÊÔ´Öм䡣ÅäºÏVO,
ÌṩÊý¾Ý¿âµÄCRUD²Ù×÷...
ËÄ¡¢BO(business object) ÒµÎñ¶ÔÏó
´ÓÒµÎñÄ£Ð͵ĽǶȿ´,¼ûUMLÔª¼þÁìÓòÄ£ÐÍÖеÄÁìÓò¶ÔÏó¡£·â×°ÒµÎñÂß¼µÄjava¶ÔÏó,ͨ¹ýµ÷ÓÃDAO·½·¨,½áºÏPO,VO½øÐÐÒµÎñ²Ù×÷¡£Õâ¸ö¶ÔÏó¿ÉÒÔ°üÀ¨Ò»¸ö»ò¶à¸öÆäËüµÄ¶ÔÏó¡£
±ÈÈçÒ»¸ö¼òÀú£¬ÓнÌÓý¾Àú¡¢¹¤×÷¾Àú¡¢ ¹ØÏµµÈµÈ¡£
ÎÒÃÇ¿ÉÒ԰ѽÌÓý¾Àú¶ÔÓ¦Ò»¸öPO£¬¹¤×÷¾Àú¶ÔÓ¦Ò»¸öPO£¬ ¹ØÏµ¶ÔÓ¦Ò»¸öPO¡£
½¨Á¢Ò»¸ö¶ÔÓ¦¼òÀúµÄBO¶ÔÏó´¦Àí¼òÀú£¬Ã¿¸öBO°üº¬ÕâЩPO¡£
ÕâÑù´¦À ......
http://blog.chinaunix.net/u/17347/showart.php?id=103523
ʵÏÖÎļþ¶Ô¿½,¿ªÊ¼ÊÇдÁËÒ»¸öº¯Êý,µ«Ò»Ïë,Òª¸´ÓþÍÒªÒÔÀàΪµ¥Î»,¹Êд³ÉÒ»¸öÎļþÀà,ÏÖÖ»Ìṩһ¸öÎļþµ½ÎļþµÄ¿½±´º¯Êý,ÒÔºóÔÙ½øÐÐÀ©³ä!(ÔÚÏÂÃæÒѾÌá½»Á˸ĽøºóµÄ´úÂë)
/*
* myFile.java
*
* Created on 2006Äê4ÔÂ22ÈÕ, ÏÂÎç7:22
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package myUrl;
import java.io.*;
/**
*
* @author flying
*/
public class myFile {
/** Creates a new instance of myFile */
public myFile() {
}
public void SaveFileToFile(String F1,String F2){
FileInputStream fis = null;
FileOutputStream fos = null;
try{
......
javaѧϰ¼°½ø½×Êé¼®
´ó»°Éè¼ÆÄ£Ê½
JQuery»ù´¡½Ì³Ì
JSP.2.0¼¼ÊõÊÖ²á(¸ßÇåÎúÍêÕû°æ)
SOAȨÍþÖ¸ÄÏ£ºÍ¨¹ýBEA Aqualogic Service BusʵÏÖ
¾«Í¨JavaScript
Spring in ActionÖÐÎİæ
Spring¼¼ÊõÊÖ²á
Spring2.0¼¼ÊõÊÖ²á
Spring 2.0 ºËÐļ¼ÊõÓë×î¼Ñʵ¼ù
¾«Í¨Spring 2.0
Struts£¬Hibernate£¬Spring¼¯³É¿ª·¢±¦µä
SpringÉî¶ÈÕûºÏÖ¸ÄÏ
¾«Í¨J2EE-Eclipse.Struts.Hibernate.SpringÕûºÏÓ¦Óð¸Àý
¾«Í¨Spring-JavaÇáÁ¿¼¶¼Ü¹¹¿ª·¢Êµ¼ù
JAVAÃô½Ý¿ª·¢——ʹÓÃSpring¡¢HibernateºÍEclipse
JSFµÚÒ»²½——JSF+Spring+Hibernate +AJAX±à³Ìʵ¼ù
Hibernate QuicklyÖÐÎİæ
J2EEµç×ÓÉÌÎñϵͳ¿ª·¢´ÓÈëÃŵ½¾«Í¨——»ùÓÚStrutsºÍHibernate¼¼ÊõʵÏÖ
StrutsÓëHibernateʵÓý̳̗—¹¹½¨»ùÓÚMVCģʽµÄ¸ßЧJava WebÓ¦ÓÃ
Hibernateʵս(µÚ2°æ)
Hibernate ORM×î¼Ñʵ¼ù£¨¸½¹âÅÌ£©
Hibernate»ù´¡½Ì³Ì
¾«Í¨SOA£º»ùÓÚ·þÎñ×ÜÏßµÄStruts+EJB+Web ServiceÕûºÏÓ¦Óÿª·¢
Struts»ù´¡½Ì³Ì
ÉîÈëdz³ö Struts
¿ª·¢ÕßÍ»»÷£ºJava WebÖ÷Á÷¿ò¼ÜÕûºÏ¿ª·¢£¨J2EE+Struts+Hibernate+Spring£©
STRUTS RECIPES ÖÐÎİ棺¹¹½¨Îȹ̵ÄÉÌÎñÓ¦ÓòßÂÔ
ÕûºÏSTRUTS+HIBER ......
http://blog.csdn.net/ta8210/archive/2008/01/30/2073817.aspx
ʹÓà java ½øÐÐÎļþ¿½±´ ÏàÐźܶàÈ˶¼»áÓÃ,,²»¹ýЧÂÊÉÏÊÇ·ñ×îºÃÄØ?
×î½ü¿´ÁË¿´NIO¾ö¶¨ÊÔÒ»ÊÔ java NIO µ½µ×ÓÐʲôÐÔÄܵÄÌáÉý.
µÚÒ»ÖÖ·½·¨:¹ÅÀϵķ½Ê½
public static long forJava(File f1,File f2) throws Exception{
long time=new Date().getTime();
int length=2097152;
FileInputStream in=new FileInputStream(f1);
FileOutputStream out=new FileOutputStream(f2);
byte[] buffer=new byte[length];
while(true){
int ins=in.read(buffer);
if(ins==-1){
in.close();
out.flush();
out.close();
return new Date().getTime()-time;
}else
out.write(buffer,0,ins);
}
}
·½·¨µÄ2²ÎÊý·Ö±ðÊÇÔʼÎļþ,ºÍ¿½±´µÄÄ¿µÄÎļþ.ÕâÀï²»×ö¹ý¶à½éÉÜ.
ʵÏÖ·½·¨ºÜ¼òµ¥,·Ö±ð¶Ô2¸öÎļþ¹¹½¨ÊäÈëÊä³öÁ÷,²¢ÇÒʹÓÃÒ»¸ö×Ö½ÚÊý×é×÷ΪÎÒÃÇÄÚ´æµÄ»º´æÆ÷, È»ºóʹÓÃÁ÷´Óf1 ÖжÁ³öÊý¾Ýµ½»º´æÀï,ÔÚ ......