Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

HibernateÖ®¸¸£º¸ÃÉý¼¶µ½Java EE 6ÁË

Hibernate Ö®¸¸ Gavin King[1]½¨Ò鿪·¢ÕßÉý¼¶µ½ Java EE 6 ƽ̨£¬²¢Ö¸³ö£¬Ä¿Ç°¸÷ÖÖ²»Ô¸ÒâÉý¼¶µÄ¹ÛµãÆäʵÊÇûÓиù¾ÝµÄ¡£
Java EE 6 ·¢²¼ºó£¬ÎÒ¿´µ½Á˺ܶ෴¶ÔÉý¼¶µ½ÐÂƽ̨µÄ¹Ûµã¡£ÕâЩ·´¶Ô¹Ûµã´ó¶àÊÇÓÉ Tomcat / Jetty ÒÔ¼°Ò»Ð©¿ªÔ´¿ò¼Ü£¨ÀýÈç Hibernate Óë Spring£©µÄʹÓÃÕßÌá³ö¡£
µ±È»£¬Ñ¡Ôñ·Ç±ê×¼¡¢¿ªÔ´¼¼ÊõÓкܶàºÃ´¦¡£ÁíÍ⣬ÔÚ EE 6 ÖУ¬Äã¿ÉÒÔʹÓÃÄã¸ÐÐËȤµÄ¿ªÔ´¿ò¼Ü£¬Servlet 3 Óë CDI ¿ÉÒÔÎ޷켯³ÉµÚÈý·½¿ò¼Ü¡£Òò´Ë£¬Ã»ÓÐÀíÓɲ»Ê¹Óà EE 6¡£¾¡¹ÜÈç´Ë£¬ÎÒ»¹ÊÇ¿´µ½ÓÐÈË˵£º
Éý¼¶µ½ EE Ó¦Ó÷þÎñÆ÷ºÜÀ§ÄÑ
ÕâËƺõÊǾßÌå×éÖ¯µÄÕþÖÎÎÊÌ⣬¶ø²»ÊÇʵ¼ÊµÄ¼¼ÊõÎÊÌâ¡£µ±È»£¬Éý¼¶·þÎñÆ÷£¨ÀýÈç GlassFish »ò JBoss£©ÊǷdz£ËöËéµÄÈÎÎñ¡££¨Éý¼¶µÚÈý·½¿ò¼Ü¾Í¸üΪʹ¿àÁË¡££©Ò»Ð©×éÖ¯»ú¹¹¶Ô·þÎñÆ÷Éý¼¶ÓÐ×ŷdz£ÖØÁ¿¼¶µÄ¹ý³Ì£¬¶ø¶ÔÓÚ·þÎñÆ÷ÄÚÔËÐеĿò¼ÜµÄÉý¼¶¹ý³ÌÈ´ ûÓÐÈç´ËÖصĹý³Ì¿ØÖÆ¡£Òò´Ë£¬¶ÔÓÚ¿ª·¢ÍŶÓÀ´Ëµ£¬Éý¼¶µÚÈý·½¿ò¼Ü·´¶ø¸üÈÝÒ×һЩ¡£
ÎÒÈÏΪ¿ª·¢¸üÓÐ˵·þÁ¦¡¢¸üºÃµÄ¹ý³Ì²ÅÊÇ×îÖØÒªµÄ£¬¶ø²»ÊÇ·ÅÆú Java EE¡£½«ÄãµÄÓ¦ÓÃÔËÐÐÔÚÀϾɡ¢¹ýʱµÄ·þÎñÆ÷ƽ̨ÉÏ´æÔںܶà·çÏÕ£¬¹ý³Ì²»Ó¦¸Ã¹ÄÀøÕâÑùµÄʵ¼ù¡£
µ«´Óʵ¼ù½Ç¶È¿´£¬¼¸ºõÿһ¸öÈ˶¼×¼±¸×î½ü¾ÍÉý¼¶µ½ Servlet 3¡£ÎÞÂÛÄãÔÚʹÓà Tomcat¡¢Jetty¡¢JBoss¡¢GlassFish¡¢Resin¡¢WebLogic¡¢Oracle »¹ÊÇ WebSphere£¬¶¼Òâζ×Å·þÎñÆ÷µÄÉý¼¶¡£ÕâÊÇÒ»¸öÉý¼¶µ½ EE 6 Web Profile µÄ¾øºÃ»ú»á£¬»Æ½ðʱ»ú¡£
EE Ó¦Ó÷þÎñÆ÷Ì«ÅÓ´óÁË
·´¶ÔÀíÓÉÊÇ EE ·þÎñÆ÷°üº¬Á˺ܶࣨµ±Ç°£©Ê¹Óò»µ½µÄ¹¦ÄÜ¡£·´¶ÔÕßµÄÂÛ¾Ýͨ³£Éæ¼°µ½ÁËÌÖÂÛ jar °ü´óС¡¢Servlet ÒýÇæ+µÚÈý·½¿ò¼ÜÓë EE Ó¦Ó÷þÎñÆ÷ËùÕ¼ÓõĴÅÅÌ¿Õ¼ä´óСµÄ±È½Ï¡£Æäʵ£¬ÕâÑùµÄÂÛ¾ÝÊÇÓÐÎÊÌâµÄ£º
ÌÖÂ۵ĴÅÅÌÕ¼ÓᢴÅÅÌ¿Õ¼äÓà $ ºâÁ¿ÆäʵÊÇ΢²»×ãµÀµÄ£¬²¢ÇÒÓ¦Óà war °ü±È·þÎñÆ÷°²×°°üµÄ´óСÖØÒªµÃ¶à£¬·þÎñÆ÷Æäʵ°üº¬Á˺ܶ๦ÄÜÀ´¾¡Á¿½µµÍ war µÄ´óС¡£
ÁíÍ⣬ÎÒÈÏΪ×îÓÐ˵·þÁ¦µÄÊÇ Java EE 6 Web Profile ¸ü±¾²»ÅÓ´ó¡£Ò»µ©¾­¹ýÈÏÖ¤µÄ Web Profile ·þÎñÆ÷Ͷ·ÅÊг¡£¬ÎÒÃǾͿÉÒÔÔÚ´óµÄ EE Ó¦Ó÷þÎñÆ÷ÓëСµÄ Servlet ÈÝÆ÷ÖмäÕÒµ½Ò»¸öƽºâµã¡£
Ôã¸âµÄ J2EE Óë EJB2£¡
Ëæ×Å JCP µÄ±ê×¼»¯½ø³Ì£¬Õâ¸öÎÊÌâÆäʵÔçÒѲ»´æÔÚÁË£º
1. EJB2 ´Ó³öÏÖµ½ÏÖÔÚÒѾ­ 8 ÄêÁË£¡ËüÒÀÈ»ÊÇÄãµÄ×î¼ÑÑ¡Ôñ£¿
2.²»´íµÄ¹æ·¶ÒѾ­Í¨¹ý JCP ²»¶ÏµÄ±ê×¼»¯¶øºÏ²¢ÁË£¬¿ÉÒԷdz£È·¶¨µØʹÓÃÆäÖÐһЩ¹æ·¶¡£²»¹ý£¬JCP Ôڹ淶±ê×¼»¯ÉÏÒ²²»ÊÇ100% ³É¹¦µÄ¡£
3. ËùÓÐÔÚ EE 6 ƽ̨ÉϹ¤×÷µÄÈ˶¼ÌÖÑá EJB2 Óë J2EE¡£Õâ¾ÍÊÇΪʲÃ


Ïà¹ØÎĵµ£º

Java ·¢ËÍ Email

·¢ËÍ email  ÐèÒª email.jar  activation.jar
-----------------------------------------------
package tao.email;
 
import java.util.Date;
import java.util.Properties;
 
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
i ......

Java Set Delete Remove

       // ɾ³ýʱ±ØÐëͨ¹ýiterator.remove()À´Ö´ÐУ¬²»ÄÜÖ±½ÓʹÓÃsetµÄremove()À´Ö´ÐУ¬²»È»»á³öÏÖjava.util.ConcurrentModificationExceptionÒì³£
/*       Iterator<String> delIter = keySet.iterator();
      ......

ubntuÏÂjavaÖÐÎÄÂÒÂë½â¾ö

cd /usr/lib/jvm/java
-1.5.0-sun-1.5.0.15/jre/lib/fonts
sudo mkdir fallback
cd fallback
sudo cp /usr/share/fonts/truetype/arphic/uming.ttc /usr/lib/jvm/java
-1.5.0-sun-1.5.0.15/jre/lib/fonts/fallback
sudo mkfontdir
sudo mkfontscale ......

javaÉú³ÉËæ»úÊý×ÖºÍ×Öĸ×éºÏ


×¢£º1.·½·¨µÄ²ÎÊý length ÊÇÉú³ÉµÄËæ»úÊýµÄ³¤¶È¡£
      2. Ö»ÏëÒª´óдµÄ×Öĸ ¿ÉÒÔʹ int choice =65£» Ö»ÏëҪСдµÄ×Öĸ£¬¾Í int choice =97£»
import java.util.Random;
public String getCharAndNumr(int length)  
{  
    String val = " ......

ÓÅ»¯Java¶¯»­±à³ÌÖеÄÏÔʾЧ¹û

Java¶¯»­±à³ÌÓжàÖÖʵÏÖ·½·¨£¬µ«ËüÃÇʵÏֵĻù±¾Ô­ÀíÊÇÒ»ÑùµÄ£¬¼´ÔÚÆÁÄ»ÉÏ»­³öһϵÁеÄÖ¡À´Ôì³ÉÔ˶¯µÄ¸Ð¾õ¡£Java¶àÏ̼߳¼ÊõÊÇJava¶¯»­±à³ÌÖÐÆÕ±éÔËÓõļ¼Êõ£¬ËüÔÚ¿ØÖƶ¯»­³ÌÐòµÄÁ÷³ÌºÍ¶¯»­µÄÏÔʾЧ¹û·½ÃæÆð×ÅÖØÒªµÄ×÷Óá£Java¶¯»­±à³ÌÖеĶ¯»­ÉÁ˸ºÍͼÏñ²Ðȱ²»È«µÈÏÖÏó£¬ÊÇJava³ÌÐòÔ±¾­³£Óöµ½µÄÎÊÌâ¡£±¾ÎÄÒÔ×÷ÕßÓ¦ÓÃʵÀý³ÌÐò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ