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

Java¿ª·¢Èý½£¿ÍJSF2.0¡¢EJB3.1¡¢JPA2.0ÏÖ×´¼°·¢Õ¹

http://developer.51cto.com/art/200906/130976.htm
JSF 2.0
¾¡¹Ü Java ÔÚչʾ²ã¿ò¼ÜÉϾºÕùµÄ·Ç³£¼¤ÁÒ£¬µ« JSF ÈÔÈ»¹ÌÊØ×Å×Ô¼ºµÄÁìµØ¡£ËäÈ»Óкܶà¹ØÓÚ JSF µÄÒ×ÓÃÐԺͽ¡×³ÐÔµÄÖÊÒÉÉù£¬µ« JSF2.0 ¾ÍÊÇΪÕýÃæ½â¾öÕâЩÎÊÌâ¶øÌá³öÀ´µÄ£¬ËüµÄÒ×Ó㬴´ÐÂÒÔ¼°¿ÉÀ©Õ¹µÄÌØÐÔ°üÀ¨£º
JSF Õýʽ½« Facelets ×÷ΪÊÓͼ¼¼Êõ¡£Ò²ÐíÄã²»ÊìϤ Facelets £¬ËüÒ²ÊÇÒ»¸öÓë JSF ½áºÏĬÆõµÄ¿ªÔ´ÊÓͼ¼¼Êõ¡£Òò´Ë£¬Óë JSP ²»Í¬µÄÊÇ Facelets ¸üÊÊºÏ JSF µÄ×é¼þÄ£ÐÍÒÔ¼°ÉúÃüÖÜÆڵĸÅÄî¡£µ±È»£¬Ò²Ðí Facelets ×îÇ¿´óµÄÌØÐÔ¾ÍÊÇÔÚÓà mark-up À´´úÌæ java ´úÂë´´½¨×Ô¶¨ÒåµÄ×é¼þ¡£´´½¨×Ô¶¨Òå×é¼þµÄ¸´ÔÓ¶ÈÒ²ÐíÊÇ¿ª·¢Õß¶Ô JSF ±§Ô¹×î¶àµÄµØ·½ÁË¡£
JSF2.0 ͨ¹ýʹÓñêǩΪ Java EE 5 ÌṩÁË»ùÓÚ annotation Çý¶¯µÄÅäÖÃÌØÐÔ£¨±ÈÈç˵¿ÉÒÔʹÓà @ManagedBean ºÍ @ManagedProperty £©¡£ÕâÒ²Òâζ×Å¿ÉÒÔÒ»¶¨³Ì¶ÈÉϵļõÉÙ faces-config.xml ÎļþµÄ´óС£¬²»¹ýÏñÔÚ navigation ÕâЩ½áµãµÄÅäÖÃÔÚ XML Îļþ»¹ÊDz»ÄÜÉÙ¡£
JSF2.0 ΪÊÊÓ¦ AJAX ¶ø¸Ä±äÁË×ÔÉíµÄÉúÃüÖÜÆÚ£¬Ö»ÐèÒª¾Ö²¿Ò³ÃæµÄ½»ÓÉ AJAX ʼþ´¦Àí¡£Õâ¸öÌØÐÔʹµÃ JSF+AJAX µÄ×éºÏ¸ü¼Ó×ÔÈ»¡£
JSF2.0 ÏÖÔÚÄÚÖÃÁËÓÅÐãµÄ×ÊÔ´´¦ÀíÆ÷¡£¶Ô images £¬ JavaScript ÎļþÒÔ¼° CSS ÑùʽµÈ¶¼±íÏÖ³öÖÚ¡£Ëü¿ÉÒÔ¶Ôͨ¹ýÂß¼­Ãû³Æ£¬×ÊÔ´·Ö×éÒÔ¼°°æ±¾µÈ·½Ê½À´¸üºÃµÄÒýÓÃ×ÊÔ´¡£
³ýÉÏÊöÌØÐÔÍ⣬ JSF2.0 »¹°üÀ¨Ðí¶àÆäËü·½±ãµÄ¸Ä±ä¡£±ÈÈç˵֧³Öʼþ£¬Ö§³Ö RAILS_ENV µÄ¿ª·¢·ç¸ñ £¨ ¾ÍÊÇ ROR£© £¬Ö§³Ö¶Ô±ê×¼×é¼þ¼¯½øÐÐÀ©Õ¹¡£Äã¿ÉÒÔͨ¹ýÏÂÃæµÄÁ´½ÓÀ´¿´¿´ JSF2.0 µÄ¹«¿ª²Ý°¸£ºhttp://jcp.org/en/jsr/detail£¿id=314
EJB 3.1
EJB ÔÚ Java EE 5 ¾ÍÒѾ­¾­Àú¹ýÁ˷dz£´óµÄ¸Ä¶¯¡£Ò²Ðí¿´ËƲ»¿ÉÄÜ£¬µ«Êµ¼ÊÉÏ EJB3.0 »¹ÊÇÔÚÉçÇøÖй㷺µÃµ½ÈÏ¿É£¬²¢ÇÒ²ÉÄÉËüµÄÈËÒ²ÔÚ²»¶ÏÔö³¤¡£¶øÕâÒ»ÇÐÒ²ÐíÊÇÒòΪÎÒÃǹý¶ÈµÄÈÏΪÐèÒªÔõôÔõô¼ò»¯ Java EE 5 ²ÅÈ¡µÃÕâÑùµÄ³É¼¨¡£±ÈÈç˵£¬¶Ô JBoss Seam µÄÐËȤºÍ GlassFish µÄÈÈÇ鶼ÊÇÖØÒªµÄ¹Ø¼üÒòËØ¡£ EJB3.1 µÄÄ¿±ê¾ÍÊÇÔÚÔö¼ÓÒµÎñ×é¼þʱ£¬¼ÌÐøÈà EJB ±äµÃ¾¡¿ÉÄܼòµ¥¡£ÏÂÃæÊÇ¶Ô EJB3.1 ÌØÐԵĸ߶ȸÅÀ¨£º
Ô­±¾ÐèÒªÉõÖÁʵÏÖ Session Beans µÄÒµÎñ½Ó¿Ú±äµÃ¿ÉÑ¡ÁË£¬²»ÔÙÇ¿ÆÈÒªÇóʵÏÖ¡£ÔÚʹÓà Session Beans+JSF+WebBeans µÄ³¡¾°ÏÂÓÈÆäÓÐÓá£
EJB3.1 Ôö¼ÓÁË Singleton Beans µÄ¸ÅÄî¡£ÒòΪÈËÃǸüÇãÏòÓÚ¹ÜÀí¹²ÏíµÄÓ¦ÓóÌÐò״̬£¬ÐèÒª±£Ö¤ÊÇÍêÈ«Ḭ̈߳²È«µÄÄ£ÐÍ¡£´ËÍ⣬ EJB3.1 ÐÂÔöµÄÉùÃ÷ʽµÄ²¢·¢¿ØÖÆÒ²¸ü¼ÓÁé»î¡£
EJB3.1 Ò»¸ö¿ÉȦ¿ÉµãµÄµÄÇ¿´óÌØÐÔ¾ÍÊÇÖ


Ïà¹ØÎĵµ£º

ÓÃJavaдÅÀÍøÒ³µÄС¹¤¾ß

ÆäʵҲ²»ÊÇÅÀÍøÒ³£¬Ö»ÊÇ´ÓÒ»¸öXMLÎļþÈ¡URL£¬È»ºóץȡÍøÒ³ÄÚÈÝ¡£
Ö÷ÒªÓм¸µã£¬±¸Íü£º
1. È«¾Ö´úÀí£¬ÉèÖÃÖ®ºóËùÓеÄURL¶¼Ê¹Óô˴úÀí£¬ÕâÑù¿ÉÒÔÖ±½Óµ÷ÓÃFileUtils.copyURLToFile£º
private void initProxy(String host, int port,
final String username, final String password) {
Authenticator.setDefault(new Aut ......

java µÄ±¯°§swingxËÀÁË

ËäÈ»¿ÉÒÔͨ¹ý https://swinglabs.dev.java.net/ ·ÃÎʵ«ÊÇÒѾ­Í£Ö¹¸üÐÂÁË£¬²»ÖªµÀж«¼ÒoracleÊÇ·ñ»á×ÊÖú¡£
×ÓÏîÄ¿
Ãû³Æ
ÕªÒª


actions
A simple framework for declarative actions in Swing apps
aerith
Cool JavaOne Demo
appframework
Swing Application Framework
beansbinding
Beans Bind ......

XPϵͳÖÐJava»·¾³±äÁ¿ÅäÖÃ

Ò»¡¢ÅäÖû·¾³±äÁ¿:
ÎҵĵçÄÔ->ÊôÐÔ->¸ß¼¶->»·¾³±äÁ¿->ϵͳ±äÁ¿ÖÐÌí¼ÓÒÔÏ»·¾³±äÁ¿£º
JAVA_HOME=D:\Program Files\Java\jdk1.6.0_20
JavaµÄ°²×°Ä¿Â¼£¬µ±Java°²×°Ä¿Â¼¸Ä±äʱֻÐè¸Ä±ä´Ë±äÁ¿¼´¿É£¬×öµ½Ò»¸ÄÈ«¸Ä£¬Í¬Ê±µÚÈý·½Èí¼þ»áÒýÓÃÔ¼¶¨ºÃµÄJAVA_HOME±äÁ¿£¬²»È»£¬Äã²»ÄÜÕý³£Ê¹ÓøÃÈí¼þ
PATH=..........;%JAV ......

HibernateÖ®¸¸½¨Ò鿪·¢ÕßÉý¼¶µ½Java EE 6

http://developer.51cto.com/art/201001/180400.htm
ÎÄÀ´×ÔCSDN²©¿Í£¬Ô­ÎıêÌâΪ¡¶Hibernate Ö®¸¸£ºÊÇʱºòÉý¼¶µ½Java EE 6ÁË¡·¡£
Hibernate Ö®¸¸Gavin King½¨Ò鿪·¢ÕßÉý¼¶µ½ Java EE 6 ƽ̨£¬²¢Ö¸³ö£¬Ä¿Ç°¸÷ÖÖ²»Ô¸ÒâÉý¼¶µÄ¹ÛµãÆäʵÊÇûÓиù¾ÝµÄ¡£
Java EE 6 ·¢²¼ºó£¬ÎÒ¿´µ½Á˺ܶ෴¶ÔÉý¼¶µ½ÐÂƽ̨µÄ¹Ûµã¡£ÕâЩ·´¶Ô¹Ûµã´ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ