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

´«ÖDz¥¿Íjavaѧϰ EJB3½ø½×


ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½²µÄEJB3µÄ֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
      
       SLSBÎÞ״̬»á»°BeanµÄ±à³Ì¹æÔò;
EJBÀà
±à³Ì¹æÔò
  ÖÁÉÙÓÐÒ»¸öÒµÎñ½Ó¿Ú
  ±ØÐëÊǾßÌåÀà.²»ÄÜÊÇfinal»ò³éÏóµÄ.
  ±ØÐëÓпչ¹Ôì
  ¿ÉÒÔÊÇÆäËüsessionbean»òpojoµÄ×ÓÀà
    @Stateless
    public CustomerManagerBean extends BaseManagerBean
                        implements CustomerManager {
       ...
    }
   ÉúÃüÖÜÆڻص÷·½·¨¿ÉÒÔ¶¨ÒåÔÚbeanÀàÖлò³¬ÀàÖÐ.
   ×¢½â¼Ì³ÐÐèÒªÊܵ½ÏÞÖÆ,³¬ÀàÖÐ@Stateless or @Stateful×¢½âÔÚ²¿Êðʱ½«
   Òª±»ºöÂÔ.µ«¶¨ÒåµÄÈκλص÷·½·¨ºÍ×ÊÔ´×¢È붼Ҫ±»¼Ì³Ð.
ÒµÎñ·½·¨Ãû²»ÄÜÒÔejb¿ªÍ·,¿ÉÄÜ»á¸ÉÈÅejbµ×²ã´¦Àí.±ØÐ붨ÒåËùÓеķ½·¨Îª
  publicµÄ,µ«²»ÄÜÊÇfinal»òstaticµÄ.ÔÚÔ¶³ÌÒµÎñ½Ó¿ÚÖеĶ¨ÒåµÄ²ÎÊýºÍ·µ»Ø
  ÖµÀàÐͱØÐëʵÏÖjava´®Ðл¯½Ó¿Ú.
»á»°×´Ì¬ºÍSession beanÀàÐÍ
  Èç¹ûbeanҪά»¤»á»°×´Ì¬,¼ÇסÉϴν»Á÷µÄ½á¹û,ÕâÊÇÓÐ״̬µÄ»á»°bean.ÕâÒâζ
  ×Åbean»á´Ó·½·¨µ÷ÓÃÖд洢Êý¾Ýµ½ÊµÀý±äÁ¿,²¢Ê¹Óûº´æµÄÊý¾ÝÀ´´¦ÀíÏÂÒ»´Î·½
  ·¨µ÷ÓÃ.
  SLSB²»Î¬»¤ÈκÎ״̬,SFSBÇ÷ÏòÓÚ¶Ô¶à¸ö²½ÖèµÄ¹¤×÷Á÷½øÐн¨Ä£,SLSBÔòÇ÷ÏòÓë
  ¶Ô³£¹æÄ¿µÄ½øÐн¨Ä£. SFSBµäÐÍ°¸Àý¾ÍÊǹºÎï³µ.
SLSB-ÉúÃüÖÜÆڻص÷
BeanµÄÉúÃüÖÜÆڻص÷
  session beanÓÐÉúÃüÖÜÆÚ,Òâζ×Å»áÓÐһϵÁÐ״̬µÄת±ä.¿Í»§¶ËºÍbean¶¼²»
  ¸ºÔðbeanʵÀýºÎʱ´´½¨,ºÎʱÏú»Ù,ºÎʱ½øÐÐÓÅ»¯.ÕâЩÐÐΪ¶¼ÓÉÈÝÆ÷½øÐйÜÀí.
  ÉúÃüÖÜÆÚʼþ:
  ¿ÉÒÔ¹é½áΪ¼¸¸ö½×¶Î»òʼþ.×îÃ÷ÏÔµÄÊÇ´´½¨ºÍÏú»Ù,ËùÓеÄbean¶¼ÐèÒªÕâÁ½¸öÊÂ
  ¼þ.SFSB»¹»áÓÐpassivation(¶Û»¯)/activation(¼¤»î).
  bean³õʼ»¯Ê±,»á·¢ÉúÈçϹý³Ì:
    1.ÈÝÆ÷µ÷ÓÃnewInstance·½·¨.
2.Èç¹ûbeanʹÓÃDI,ËùÓÐÒÀÀµµÄ×ÊÔ´¡¢beanºÍ»·¾³×é¼þ¶¼Òª×¢Èë½øÀ´.
»Øµ÷·½·¨ÊDZ»×¢½â±ê×¢µÄ·½·¨.±ÈÈç@PostContructºÍ@PreDestroy.·½·¨¿ÉÒÔÊÇ
¹«ÓС¢Ë½ÓС¢Êܱ£»¤ºÍ°ü±£»¤µÄ.
PostConstruct:ʵÀý´´½¨²¢DIÖ®ºóµ÷ÓÃ.
PreDestr


Ïà¹ØÎĵµ£º

JAVA×Ö·û´®²Ù×÷

1¡¢   public class HelloWorld {
    public static void main(String args[]){
     String s="daxiong";
     System.out.println("Hello,World!"+"lu shenglong"+s);
     char c[]={'s','w','q'};
    &nb ......

Java¶ÁÈ¡PropertiesÎļþµÄÁùÖÖ·½·¨

 Ê¹ÓÃJ2SE API¶ÁÈ¡PropertiesÎļþµÄÁùÖÖ·½·¨
1¡£Ê¹ÓÃjava.util.PropertiesÀàµÄload()·½·¨
ʾÀý£º InputStream in = lnew BufferedInputStream(new FileInputStream(name));
Properties p = new Properties();
p.load(in);
2¡£Ê¹ÓÃjava.util.ResourceBundleÀàµÄgetBundle()·½·¨
ʾÀý£º ResourceBundle rb = Resou ......

´«ÖDz¥¿Íjavaѧϰ hibernateÓ³Éä


ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½«µÄhibernate¿ò¼Ü֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
       ¼¯ºÏÊôÐÔ´óÖ·ÖΪ¶þÖÖ£º
µ¥´¿µÄ¼¯ºÏÊôÐÔ£¬ÏñList,Set»òÊý×éµÈ¼¯ºÏÊôÐÔ¡£
              2,Map¼¯ºÏÊôÐÔ£¬Ã¿¸öÊôÐÔÖµ¶àÓÐÏà¶ÔÓ¦µÄKeyÓ³Éä¡£
&nb ......

´«ÖDz¥¿Íjavaѧϰ jbpm½ø½×

ÎÒ½ñÌìѧϰÁËjbpmµÄ֪ʶ£ºÎÒ×öÁ˼òµ¥µÄÕªÒª£º
Á÷³ÌͼÖеĸ÷ÖÖ½ÚµãµÄ×÷Óü°Ó÷¨£º
    ÐèÒªÓв»Í¬ÀàÐÍ£¨×÷Ó㩵Ľڵ㣬²ÅÄÜÉè¼Æ³ö¸´ÔÓµÄÁ÷³Ìͼ¡£JbpmÓÐÒ»Ì×Ô¤Ïȶ¨ÒåºÃµÄ½ÚµãÀàÐÍ¡£Èç¹û²»¹»Óã¬Ò²¿ÉÒÔʹÓÃ×Ô¶¨Òå½Úµã½øÐÐÀ©Õ¹£¬ÒÔÍê³É²»Í¬µÄÁ÷³ÌµÄÐèÒª¡£²»Í¬µÄ½ÚµãÀàÐÍ´ú±í²»Í¬µÄÐÐΪ¡£
ÿ¸öÁ÷³Ì¶¼±ØÐëÒªÓп ......

´«ÖDz¥¿Íjavaѧϰ OAÏîÄ¿1

½ñÌìÊÇѧϰOAϵͳµÄµÚÒ»Ì죬ÎÒ¶Ô½ñÌìµÄÉÏ¿ÎÄÚÈÝ×öÁ˼òµ¥µÄ×ܽ᣺
OA¼ò½é£º
OAÊÇOFFICE AUTOMATIONµÄËõд£¬±¾ÒâΪÀûÓü¼ÊõµÄÊÖ¶ÎÌá¸ß°ì¹«µÄЧÂÊ£¬½ø¶øʵÏְ칫µÄ×Ô¶¯»¯´¦Àí¡£²ÉÓÃInternet/Intranet¼¼Êõ£¬»ùÓÚ¹¤×÷Á÷µÄ¸ÅÄʹÆóÒµÄÚ²¿ÈËÔ±·½±ã¿ì½ÝµØ¹²ÏíÐÅÏ¢£¬¸ßЧµØЭͬ¹¤×÷£»¸Ä±ä¹ýÈ¥¸´ÔÓ¡¢µÍЧµÄÊÖ¹¤°ì¹«·½Ê½£¬ÊµÏÖѸËÙ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ