JavaÔ¶³ÌͨѶÏà¹Ø¼¼Êõ
Ò»¡¢»ùÓÚRMIµÄÒ»´ÎÍêÕûµÄÔ¶³ÌͨÐŹý³ÌµÄÔÀí£º
1. ¿Í»§¶Ë·¢ÆðÇëÇó£¬ÇëÇóת½»ÖÁRMI¿Í»§¶ËµÄstubÀࣻ
2. stubÀཫÇëÇóµÄ½Ó¿Ú¡¢·½·¨¡¢²ÎÊýµÈÐÅÏ¢½øÐÐÐòÁл¯£»
3. »ùÓÚsocket½«ÐòÁл¯ºóµÄÁ÷´«ÊäÖÁ·þÎñÆ÷¶Ë£»
4. ·þÎñÆ÷¶Ë½ÓÊÕµ½Á÷ºóת·¢ÖÁÏàÓ¦µÄskeltonÀࣻ
5. skeltonÀཫÇëÇóµÄÐÅÏ¢·´ÐòÁл¯ºóµ÷ÓÃʵ¼ÊµÄ´¦ÀíÀࣻ
6. ´¦ÀíÀà´¦ÀíÍê±Ïºó½«½á¹û·µ»Ø¸øskeltonÀࣻ
7. SkeltonÀཫ½á¹ûÐòÁл¯£¬Í¨¹ýsocket½«Á÷´«Ë͸ø¿Í»§¶ËµÄstub£»
8. stubÔÚ½ÓÊÕµ½Á÷ºó·´ÐòÁл¯£¬½«·´ÐòÁл¯ºóµÄJava Object·µ»Ø¸øµ÷ÓÃÕß¡£
1. ´«ÊäµÄ±ê×¼¸ñʽÊÇʲô£¿
ÊÇJava ObjectStream¡£
2. ÔõôÑù½«ÇëÇóת»¯Îª´«ÊäµÄÁ÷£¿
»ùÓÚJava´®Ðл¯»úÖƽ«ÇëÇóµÄjava objectÐÅϢת»¯ÎªÁ÷¡£
3. Ôõô½ÓÊպʹ¦ÀíÁ÷£¿
¸ù¾Ý²ÉÓõÄÐÒéÆô¶¯ÏàÓ¦µÄ¼àÌý¶Ë¿Ú£¬µ±ÓÐÁ÷½øÈëºó»ùÓÚJava´®Ðл¯»úÖƽ«Á÷½øÐз´ÐòÁл¯£¬²¢¸ù¾ÝRMIÐÒé»ñÈ¡µ½ÏàÓ¦µÄ´¦Àí¶ÔÏóÐÅÏ¢£¬½øÐе÷Óò¢´¦Àí£¬´¦ÀíÍê±ÏºóµÄ½á¹ûͬÑù»ùÓÚjava´®Ðл¯»úÖƽøÐзµ»Ø¡£
4. ´«ÊäÐÒéÊÇ£¿
Socket¡£
¶þ¡¢XML-RPCÐÒéµÄÒ»´ÎÔ¶³ÌͨÐŹý³Ì£º
1. ¿Í»§¶Ë·¢ÆðÇëÇ󣬰´ÕÕXML-RPCÐÒ齫ÇëÇóÐÅÏ¢½øÐÐÌî³ä£»
2. Ìî³äÍê±Ïºó½«xmlת»¯ÎªÁ÷£¬Í¨¹ý´«ÊäÐÒé½øÐд«Ê䣻
3. ½ÓÊÕµ½ÔÚ½ÓÊÕµ½Á÷ºóת»»Îªxml£¬°´ÕÕXML-RPCÐÒé»ñÈ¡ÇëÇóµÄÐÅÏ¢²¢½øÐд¦Àí£»
4. ´¦ÀíÍê±Ïºó½«½á¹û°´ÕÕXML-RPCÐÒéдÈëxmlÖв¢·µ»Ø¡£
1. ´«ÊäµÄ±ê×¼¸ñʽÊÇ£¿
±ê×¼¸ñʽµÄXML¡£
2. ÔõôÑù½«ÇëÇóת»¯Îª´«ÊäµÄÁ÷£¿
½«XMLת»¯ÎªÁ÷¡£
3. Ôõô½ÓÊպʹ¦ÀíÁ÷£¿
ͨ¹ý¼àÌýµÄ¶Ë¿Ú»ñÈ¡µ½ÇëÇóµÄÁ÷£¬×ª»¯ÎªXML£¬²¢¸ù¾ÝÐÒé»ñÈ¡ÇëÇóµÄÐÅÏ¢£¬½øÐд¦Àí²¢½«½á¹ûдÈëXMLÖзµ»Ø¡£
4. ´«ÊäÐÒéÊÇ£¿
Http¡£
Èý¡¢Binary-RPC¿´Ãû×Ö¾ÍÖªµÀºÍXML-RPCÊDz¶àµÄÁË£¬²»Í¬Ö®´¦½öÔÚÓÚ´«ÊäµÄ±ê×¼¸ñʽÓÉXMLתΪÁ˶þ½øÖƵĸñʽ¡£
1. ´«ÊäµÄ±ê×¼¸ñʽÊÇ£¿
±ê×¼¸ñʽµÄ¶þ½øÖÆÎļþ¡£
2. ÔõôÑù½«ÇëÇóת»¯Îª´«ÊäµÄÁ÷£¿
½«¶þ½øÖƸñʽÎļþת»¯ÎªÁ÷¡£
3. Ôõô½ÓÊպʹ¦ÀíÁ÷£¿
ͨ¹ý¼àÌýµÄ¶Ë¿Ú»ñÈ¡µ½ÇëÇóµÄÁ÷£¬×ª»¯Îª¶þ½øÖÆÎļþ£¬¸ù¾ÝÐÒé»ñÈ¡ÇëÇóµÄÐÅÏ¢£¬½øÐд¦Àí²¢½«½á¹ûдÈëXMLÖзµ»Ø¡£
4. ´«ÊäÐÒéÊÇ£¿
Http¡£
ËÄ¡¢JMSÖеÄÒ»´ÎÔ¶³ÌͨÐŵĹý³Ì£º
1. ¿Í»§¶Ë½«ÇëÇóת»¯Îª·ûºÏJMS¹æ¶¨µÄMessage£»
2. ͨ¹ýJMS API½«Message·ÅÈëJMS Queue
Ïà¹ØÎĵµ£º
JavaÄÚ´æ¹ÜÀí
¹Ø¼ü×Ö: ÄÚ´æ·ÖÅ䣬³£Á¿³Ø
Ò»¡¢JavaÄÚ´æ·ÖÅä
1¡¢ JavaÓм¸ÖÖ´æ´¢ÇøÓò£¿
* ¼Ä´æÆ÷
-- ÔÚCPUÄÚ²¿£¬¿ª·¢ÈËÔ±²»ÄÜͨ¹ý´úÂëÀ´¿ØÖƼĴæÆ÷µÄ·ÖÅ䣬ÓɱàÒëÆ÷À´¹ÜÀí
* Õ»
-- ÔÚWindowsÏÂ, Õ»ÊÇÏòµÍµØÖ·À©Õ¹µÄÊý¾Ý½á¹¹£¬ÊÇÒ»¿éÁ¬ÐøµÄÄÚ´æµÄÇøÓò£¬¼´Õ»¶¥µÄµØÖ·ºÍÕ»µÄ×î´óÈÝÁ¿ÊÇ ......
ѧÍêÁËJAVA,C#¾¹»¹²»Ö®·ºÐÍ»úÖƺͷ´Éä»úÖÆ¡«¿ñº¹£¡ÀÏʦû˵¹ý£¬ÎÒҲûÓÐ×êÑйý¡«
·ºÐÍ£º
¸ÅÄËùν·ºÐÍ(generic)ÊÇÖ¸½«ÀàÐͲÎÊý»¯ÒÔ´ïµ½´úÂ븴ÓÃÌá¸ßÈí¼þ¿ª·¢¹¤×÷ЧÂʵÄÒ»ÖÖÊý¾ÝÀàÐÍ¡£·ºÐÍÀàÊÇÒýÓÃÀàÐÍ£¬ÊǶѶÔÏó£¬Ö÷ÒªÊÇÒýÈëÁËÀàÐͲÎÊýÕâ¸ö¸ÅÄî¡£
......
final ¹Ø¼ü×Ö ºÍ static Ó÷¨
Ò»¡¢final
¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª×èÖ¹¸Ä±ä£ºÉè¼Æ»òЧÂÊ¡£
finalÀ಻Äܱ»¼Ì³Ð£¬Ã»ÓÐ×ÓÀ࣬finalÀàÖеķ½·¨Ä¬ÈÏÊÇfinalµÄ¡£
......
Server£º
ServerSocket server = new ServerSocket(PORT, 1); // ´ò¿ªServer²¢¼àÌý
Socket client = server.accept(); ......
´ó¼ÒºÃ,ÎÒÊÇ´«ÖDz¥¿Í2009Äê12ÔÂ20ºÅ³å´Ì°àѧԱ.ÔÚ½ÓÏÂÀ´µÄ¼¸¸öÔÂÀïÎÒ½«ÕæʵµÄ¼Í¼ÔÚ´«ÖDz¥¿ÍµÄѧϰ¾Àú.Ò»ÊǶÔ×Ô¼ºÑ§Ï°µÄ×ܽáºÍ¼Í¼;¶þÊÇÕæʵµÄ·´Ó¦ÔÚ´«ÖDz¥¿Íѧϰ¾ÀúºÍ¹ý³Ì.
ÏȽéÉÜÒ»ÏÂÎÒ×Ô¼º´Ó±ÏÒµµ½´«ÖDz¥¿Í֮ǰÔÚ±±¾©µÄ¾Àú.09Äê±¾¿ ......