Java EEÏÖ×´¼°Æä·¢Õ¹Ç÷ÊÆ
ÔÎÄ£º http://blog.sina.com.cn/s/blog_4e0c121101000awr.html
(ÕâÊÇÎÒÄê³õдµÄһƪÎÄÕ£¬µ«³Ù³ÙûÓй«¿ª¡£ÓÐЩÄÚÈÝ¿ÉÄÜÒѾ¹ýʱ£¬µ«»¹ÊÇÖµµÃÒ»¶Á.)
¾¹ý½«½ü10ÄêµÄ·¢Õ¹ºó£¬Java EEÒѾÑݱäΪµ±Ç°ÆóÒµµÄÖ÷Á÷¼ÆËãƽ̨¡£¿ª·¢ÕßÔÙÒ²²»Äܹ»¼ò¼òµ¥µ¥µØ½«Java¿´³ÉÒ»ÖÖ±à³ÌÓïÑÔÁË£¬Æä²úÒµºÍ¼¼ÊõÁ´ÒѾÉøÈëµ½¸÷Ðи÷ÒµµÄÆóҵϵͳµÄ¸÷¸ö»·½Ú¡£±¾ÎÄÊÔͼ¶ÔJava EEÏÖ×´¼°Æä·¢Õ¹Ç÷ÊƽøÐвûÊö¡£
ÏÖ×´
ÕûÌå¶øÑÔ£¬Java EEƽ̨Õý´¦ÔÚÒ»¸öÊ®×Ö·¿Ú¡£ÏÖÈç½ñ£¬Õû¸öJava SE/Java EE/Java MEƽ̨ÒѾ¿ªÔ´ÁË£¬ÕâÔÚJava·¢Õ¹Ê·ÉÏÊÇÇ°ËùδÓеġ£Óë´Ëͬʱ£¬Ðí¶à¿ªÔ´ÊµÌåÒѾ²ÎÓëµ½Ðí¶àÖØÒªµÄJava EE¼¼Êõ¹æ·¶µÄÖƶ¨¹¤×÷ÖУ¬±ÈÈçEJB 3.0µÄÍƳö¡¢Java EE 5ƽ̨µÄ·¢²¼¡£ÕâЩѶϢҲ¸æËßÎÒÃÇ£¬Õû¸öJava EEƽ̨ÒѾ·Ç³£³ÉÊ죬¼±ÐèÕÒµ½ÐµÄÍ»ÆÆ¿Ú¡¢ÐµĻúÓö£¬²¢½øÒ»²½È¥Íƶ¯×ÔÉíµÄ·¢Õ¹¡£
ÎÞÂÛÊÇJava EE¹æ·¶µÄÖƶ©Õß¡¢Java EEÈÝÆ÷³§ÉÌ£¬»¹ÊÇJava EE¹¤¾ßÌṩÕß¡¢ºÍ»ùÓÚJava EE¿ª·¢µÄISV£¬¿ªÔ´ÉçÇøÒѾÔÚËüÃÇÉíÉÏ°çÑÝ×ŷdz£ÖØÒª¡¢¹Ø¼üµÄ½ÇÉ«¡£
¿ÉÒÔ¿´³ö£¬¿ªÔ´ÒѾ³ÉΪÁËJava EEµÄÖ÷»ùµ÷£¬ÕâÊÇÒ»ÖÖȫеÄÐ×÷¡¢»¥¶¯Ä£Ê½¡£
´Ó¿ªÔ´Ì¸Æð
¿ªÔ´²»½ö½öÊÇÒ»¸öÐÎʽ£¬ÆäÔ̺µÄÄÚÈݷdz£·á¸»¡£¶ÔÓÚISV¶øÑÔ£¬ÕâÒâζ×ÅÈí¼þµÄÑз¢Ä£Ê½ÐèҪת±äÁË£¬¾¡¿ÉÄܲÉÄɳÉÊìµÄ¡¢Ö÷Á÷µÄ¿ªÔ´¼¼ÊõÀ´´òÔìÎÒÃǵÄϵͳ¡£´Ëʱ£¬ÎÒÃDz»ÓÃÈ¥¹Ø×¢¿ªÔ´¼¼ÊõµÄµ×²ãʵÏÖºÍά»¤¹¤×÷£¬ÒòΪÕû¸ö¿ªÔ´ÉçÇøÔÚ»ý¼«Íƶ¯ÕâÒ»ÖØÒª¶ø»ù´¡µÄ¹¤×÷¡£
À´Ñо¿Ò»¸ö°¸Àý¡£¿ªÔ´ÁìÓòµÄSpringÒѾ³ÉΪÁ˹¹½¨Java EEÓ¦ÓõÄÊÂʵÉϱê×¼£¬Ëü½«Java EEÁìÓòÖв»Í¬ÈÝÆ÷µÄ²îÒìÐÔÔ̲ØÆðÀ´£¬Îª¿ª·¢ÈËÔ±±©Â¶ÁËͳһµÄ¡¢Ò»ÖµĽӿڡ£²ÉÄÉSpring¼Ü¹¹Ä¿±êÓ¦Óúó£¬Ó¦ÓõĿÉÒÆÖ²ÐÔ£¨±ãЯÐÔ£©²»ÔÙÊÇÎÊÌ⣬¶øÇÒ¿ª·¢ÕߵĿª·¢Ð§ÂʺͿª·¢ÌåÑéµÃµ½·Ç³£´óµÄÌáÉý£¬Ó¦ÓõÄÖÊÁ¿Ò²Äܹ»µÃµ½±£ÕÏ¡£Óë´Ëͬʱ£¬Spring»¹ÔÚ²»¶ÏµØ³¬Ô½Java EEƽ̨¼¼Êõ±¾Éí¡£ÄѵÀÎÒÃǵÄϵͳÓÐÀíÓɲ»¼Ü¹¹ÔÚÕâÀ࿪Դ¼¼ÊõÉÏ£¿Æäʵ£¬ÕâÊÇÒ»ÖÖ¾«Ï¸»¯·Ö¹¤¡£ISVÃÇÔÙÒ²²»ÓÃÔÚÕâÀà»ù´¡¹¤×÷ÉÏ»¨·ÑÌ«¶àµÄʱ¼äºÍ¾«Á¦£¬¶øÇÒÕâÀ๤×÷»¹ºÜÄÑ×öºÃ¡£ISV¿ÉÒÔ½«¸ü¶àµÄ¾«Á¦·ÅÔÚϵͳµÄÒµÎñÂß¼ºÍ¹¦ÄܵÄʵÏÖÉÏ¡£
ÔÙÀ´Ñо¿Ò»¸ö°¸Àý¡£´ó²¿·Ö¿ª·¢Õ߶¼»á²ÉÓÿªÔ´ÁìÓòµÄEclipse£¨WTP£© IDEÀ´¿ª·¢Ä¿±êϵͳ£¬Æä°²×°·½±ã¡¢¿ÉÀ©Õ¹ÐÔÇ¿¡£´ÓEclipse 3.2¿ªÊ¼£¬OSGi³ÉΪÁËËüµÄ΢Äںˣ¬ÕâÊÇÒ»ÖØÒªµÄʹÄܼ¼Êõ£¨ºóÐøÄÚÈÝ»áÖصãÌÖÂÛµ½Ë
Ïà¹ØÎĵµ£º
ÒÔÇ°Ö»ÖªµÀjavaÄܵ÷ÓÃoracle´æ´¢¹ý³ÌºÍº¯Êý£¬µ«½ñÌìÎÒ·¢ÏÖÔÀ´oracleÒ²¿ÉÒÔµ÷ÓÃjava
²âÊÔ»·¾³oracle 10g
call dbms_java.set_output(5000);
--Ê×ÏÈÔÚoracleÖбàÒëjavaÎļþ ÒÔÏÂÊǸö¼òµ¥µÄ
create or replace and compile java source named helloworld as
public class hellowor ......
µ±Ò»¸ö¸´ÔӵĶÔÏó±»¹¹Ôìʱ,ËüµÄ¹¹Ô캯Êý°´ÏÂÃæµÄ˳Ðò±»µ÷ÓÃ(that the order of constructor calls for a complex object is as follows)
1.Æä»ùÀà(base-class)µÄ¹¹Ô캯Êý±»µ÷ÓÃ,Õâ¸ö²½ÖèÒԵݹéµÄ·½Ê½Öظ´,ËùÒÔ×îµ×²ã(the root of hierarchy)µÄ¹¹Ô캯ÊýÊ×Ïȱ»Ö´ÐÐ,È»ºóÊÇËüÉÏÒ»²ãÅÉÉúÀà(the next-deriv ......
µ¥Àýģʽ.
¼ò¶øÑÔÖ®£¬¾ÍÊÇÒ»¸öÀàÖ»ÓÐÒ»¸öʵÀý¡£
Singleton.java£º
package com.xfimti.sigleton;
public class Singleton
{
/*µÚÒ»ÖÖ·½Ê½¡£*/
private static Singleton singleton = new Singleton();
/*µÚ¶þÖÖ·½Ê½¡£*/
private static Singleton mySingleton = null;
p ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......