XULRunner with Java: JavaXPCOM Tutorial 0
LADyRÊÇÎ÷°àÑÀÒ»¸öʵÑéÊÒÓиöweb extractionµÄÏîÄ¿ http://ladyr.es/index.php?id=75 µ±È»Õâ¸öÏîÄ¿»¹Ã»³öÀ´£¬²»¹ýÀïÃæÓиö½é
ÉÜÓÃjavaǶÈëä¯ÀÀÆ÷µÄ½Ì³Ì£¨http://ladyr.es/wiki/wiki/XPCOMGuide£©ºÜ²»´í¡£ËùÒÔ°ÑÕâƪÎÄÕ·Òëһϣ¬Ë³±ã˵˵×Ô¼ºÑ§Ï°Õâƪ
ÎÄÕÂÖµµÃ×¢ÒâµÄµØ·½¡£ËµÃ÷Ò»ÏÂÎÒʹÓõIJÙ×÷ϵͳÊÇwindows xp¡£ÏÂÃ涼ÊÇ·ÒëµÄÄÚÈÝ£¬Èç¹ûÊÇÎÒ×Ô¼ºµÄ˵Ã÷»á±êÃ÷¡£
Ïà¹ØÎĵµ£º
JAVAÈÝÆ÷
¡¡¡¡½âÊÍÒ»£º
¡¡¡¡ÈÝÆ÷£¨Container£©
¡¡¡¡Spring ÌṩÈÝÆ÷¹¦ÄÜ£¬ÈÝÆ÷¿ÉÒÔ¹ÜÀí¶ÔÏóµÄÉúÃüÖÜÆÚ¡¢¶ÔÏóÓë¶ÔÏóÖ®¼äµÄÒÀÀµ¹Øϵ£¬Äú¿ÉÒÔʹÓÃÒ»¸öÅäÖÃÎļþ£¨Í¨³£ÊÇXML£©£¬ÔÚÉÏÃ涨ÒåºÃ¶ÔÏóµÄÃû³Æ¡¢ÈçºÎ²úÉú£¨Prototype ·½Ê½»òSingleton ·½Ê½£©¡¢Äĸö¶ÔÏó²úÉúÖ®ºó±ØÐëÉ趨³ÉΪij¸ö¶ÔÏóµÄÊôÐԵȣ¬ÔÚÆô¶¯ÈÝÆ÷Ö®ºó£¬ËùÓÐ ......
Ò»¡¢Axis°²×° 1¡¢»·¾³ J2SE SDK 1.5 or 1.6: ÎÒʹÓà 1.6 Servlet Container: ÎÒʹÓõÄTomcat 6.0
2¡¢µ½ http://ws.apache.org/Axis/ÍøÕ¾ÏÂÔØAxis°²×°°ü
3¡¢ÏÈÔÚeclipseÏÂн¨web projectΪWebServiceDemo.ÔÚTomcatµÄÅäÖÃxmlÅäÖÃÉÏ£º<Context path="/webservice" docBase="D:\workspace\WebServiceDemo\WebRoot"/>. ......
µÚ1Õ JavaÓïÑÔ¸ÅÊö
1.1 ֪ʶ¸ÅÀ¨
1.2 ʵÑéÁ·Ï°
1.2.1 Ò»¸ö¼òµ¥µÄÓ¦ÓóÌÐò
classÀï²»ÄÜÔÙÓÐclass£¬ÎÞÂÛÓÐûÓÐpublicÐÞÊΣ¬class¶¼ÊÇƽÐйØϵ£¬ÔÚbinÎļþ¼ÐÖлá²úÉú¸÷×ÔµÄ×Ö½ÚÂëÎļþ¡£Í¬Ò»¸ö.javaÔ´ÎļþÖÐÖÁ¶àÓÐÒ»¸öpublic class£¬Èç¹û²»ÏëÔÙÒ»¸öÔ´ÎļþÖÐд¶à¸öÀ࣬¾Í¸÷×ÔдԴ³ÌÐò£¬²¢°ÑÀ๫Ó㬼´ÓÃpublicÐÞÊΡ£
1.2.2 ......
½ñÌìÅöµ½ÁËÒ»¸öºÜ±ä̬µÄÎÊÌ⣬дÁËÒ»¸öºÜ¼òµ¥µÄHelloWord.java£¬ÄÚÈÝÈçÏ£º
package com.yanjiuyanjiu;
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
ÔÚeclips ......
javaͬһÓû§µÇ¼ÎÊÌâ
1.ÉϸöÔÂÒ²ÓÐÌÖÂÛÕâ¸öÎÊÌâµÄ,ÓкöàÈ˶¼·¢±íÁËÒâ¼û,µ«Ò²Ã»Óбê×¼µÄ´ð°¸
ÎÒ¿´µ½Ò»¸ö,:½«SEssionID´æÈëDBÖÐ,µ±ÄãµÇ¼ʱ,Åжϵ±Ç°µÄSEssionIDºÍDB
ÀïÊDz»ÊÇͬһ¸ö,Èç¹û²»ÊÇ,˵Ã÷ÊǵڶþÈ˵ǼÁË,ÄǾͽ«DBÀïµÄSESSIONID×¢Ïú
È»ºóÔÙ´¦ÀíµÚ¶þ¸öµÇ¼.
2.ÔÚContextÖн¨Á¢Ò»¸öMap <String,Sission>,´ ......