·ÃÎÊÔ¶³ÌJava¶ÔÏó remoteObject
19.2 ·ÃÎÊÔ¶³ÌJava¶ÔÏóΪÁËʵÏÖ¶ÔÔ¶³ÌJava¶ÔÏóµÄ·ÃÎÊ£¬ÔÚ·þÎñÆ÷¶Ë£¬ÐèÒªÍê³ÉÈçϼ¸¸ö²½Ö裺 1. ´´½¨LiveCycle Data Service WebÓ¦Óã» 2. ʵÏÖPOJO JavaÀࣻ 3. ÔÚLiveCycle Data Service WebÓ¦ÓÃÖв¿ÊðPOJO JavaÀࣻ 4. ÅäÖÃremote-config.xmlÎļþ£¬ÉùÃ÷desination½Úµã£¬Ö¸ÏòPOJO JavaÀà¡£ ÔÚ¿Í»§¶ËÓ¦ÓÃÖУ¬ÐèҪʵÏÖ£º 1. ʵÀý»¯RemoteObject¶ÔÏ󣬲¢É趨destinationµÈÊôÐÔ£» 2. µ÷ÓÃÔ¶³ÌJava¶ÔÏóµÄ·½·¨£¬²¢´«µÝ²ÎÊý£» 3. ×¢²áRemoteObject¶ÔÏóµÄresultºÍfaultʼþÕìÌýÆ÷£¬ÊµÏÖÕìÌýÆ÷·½·¨ÒÔ´¦Àí·µ»ØÏìÓ¦»òÕßµ÷ÓÃÒì³£¡£ ÎÒÃÇÒѾÔÚµÚ17ÕµÄ17.5.1½Ú“´´½¨·þÎñÆ÷¶ËLiveCycle Data ServiceÓ¦ÓÔ£¨¼ûµÚ416Ò³£©ÖнéÉܹýÈçºÎ´´½¨LiveCycle Data Service WebÓ¦Óá£Òò´Ë£¬ÎÒÃÇÕâÀォ´ÓʵÏÖPOJO JavaÀ࿪ʼÖð²½ÊµÏÖ·ÃÎÊÔ¶³ÌJava¶ÔÏó¡£ 19.2.1 ·þÎñÆ÷¶Ë£ºÊµÏÖPOJO JavaÀàʹÓÃPOJOÀà×÷ΪԶ³ÌJava¶ÔÏóÎÒÃǵ±È»²»»áÔÚÒ»±¾FlexÊé¼®Öн²½âÈçºÎ±àдPOJO JavaÀà¡£ÎÒÃÇÐëÒªÔÚÕâÀï½âÊÍһϿÉÒÔ×÷ΪԶ³ÌJava¶ÔÏóµÄJavaÀà¡£ Ö»ÓÐËùνµÄPOJOÀàÄܹ»×÷ΪԶ³ÌJava¶ÔÏó¡£POJO£¨Plain Old Java Object£©¼ò³ÆΪ¼òµ¥Java¶ÔÏó£¬Í¨³£°üº¬ÁËһϵÁÐgetºÍset·½·¨¡£Í¨³£Ëù˵µÄPOJO JavaÀà¾ÍÊÇ´¿µÄJava¶ÔÏ󣬲»ÊµÏÖÈκÎJava¶ÔÏóÄ£ÐÍ¡¢ÐÒé¼°¿ò¼Ü£¬ÀýÈç²»ÄÜʵÏÖEJB±ê×¼¡£ÑϸñµØ˵£¬POJOÀ಻Äܼ̳ÐÆäËû¸¸À࣬²»ÄÜʵÏÖ½Ó¿Ú¡£LiveCycle Data ServiceÒªÇó£¬×÷ΪLiveCycle Data ServiceÔ¶³Ì·þÎñµÄÔ¶³ÌJava¶ÔÏó£¬Æä¹¹ÔìÆ÷²»ÄܽÓÊÜÈκβÎÊý£¬Ò²¾ÍÊÇ˵±ØÐëΪÁã²ÎÊý¹¹ÔìÆ÷¡£ÕâÑù£¬LiveCycle Data Service²ÅÄܹ»¹¹ÔìPOJOÀàʵÀý¡£ È»¶ø£¬POJOÀàÈÔÈ»¿ÉÒÔ×÷Ϊºó¶ËÒµÎñÂß¼·þÎñµÄ´°¿Ú£¬ÀýÈçʹÓÃPOJOÀà·ÃÎÊJNDI£¬»ñÈ¡EJB·þÎñµÈ£¬ÒÔ±ã½øÒ»²½¼¯³Éºó¶ËÒµÎñÂß¼¡£ POJO JavaÀàµÄ¹«¹²·½·¨ÌṩÁËÔ¶³Ì·þÎñ¡£ÐèҪעÒâµÄÊÇ£¬LiveCycle Data Service±£ÁôÁËһЩ·½·¨Ãû£¬Òò´ËPOJO JavaÀ಻ÄÜʹÓÃÕâЩ·½·¨Ãû£¬ÎÒÃdzÆÕâЩ·½·¨Îª“±£Áô·½·¨”¡£±£Áô·½·¨ÊÇRemoteObjectÀà»òÆ丸ÀඨÒåµÄ·½·¨¡£ ±£Áô·½·¨°üÀ¨£º · addHeader()£» · addProperty()£» · clearUsernamePassword()£» · deleteHeader()£» · hasOwnProperty()£» · isPropertyEnumerable()£» · isPrototypeOf()£» · registerClass()£» · setUsernamePassword()£» · toLocaleString()£» · toString()£» · unwatch()£» · valueOf()£» · watch
Ïà¹ØÎĵµ£º
ÔÚjava´úÂëÖо³£ÓжÁÈ¡Íⲿ×ÊÔ´µÄÒªÇó:ÈçÅäÖÃÎļþµÈµÈ,ͨ³£»á°ÑÅäÖÃÎļþ·ÅÔÚclasspathÏ»òÕßÔÚwebÏîÄ¿ÖзÅÔÚweb-infÏÂ.
1.´Óµ±Ç°µÄ¹¤×÷Ŀ¼ÖжÁÈ¡:
try {
BufferedReader in = new BufferedReader(new InputStreamRea ......
try {
Runtime.getRuntime().exec("C:\\xxx.exe");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} ......
JAVA finally×Ö¾äµÄÒì³£¶ªÊ§ºÍ·µ»ØÖµ¸²¸Ç½âÎö
JavaÐéÄâ»úÔÚÿ¸ötryÓï¾ä¿éºÍÓëÆäÏà¹ØµÄcatch×Ó¾äµÄ½áβ
´¦¶¼»á“µ÷ÓÔfinally×Ó¾äµÄ×ÓÀý³Ì¡£Êµ¼ÊÉÏ£¬finally×Ó¾äÔÚ·½·¨ÄÚ²¿µÄ±íÏÖºÜÏó“΢ÐÍ×ÓÀý³Ì”¡£finally×Ó¾äÕý³£½áÊøºó£Ö¸µÄÊÇfinally×Ó¾äÖÐ×îºóÒ»ÌõÓï¾äÕý³£Ö´ÐÐÍê±Ï£¬²»°üÀ¨Å׳öÒì³££¬»òÖ´ÐÐre ......
ÏîÄ¿µ½ÁËβÉù£¬´ó¼Ò¶¼¿ªÊ¼Í·ÌÛ——ÓÖҪдÎĵµÁË……Êǵģ¬ÎÒÃÇ´ó¶àÊýÈ˶¼²»ÊÇ´ÓÕý¹æµÄProgramerѵÁ·³öÀ´µÄ¡£µ±³õ
ѧϰ±à³ÌÐòµÄʱºò£¬¾Í´ÓÀ´Ã»ÓÐÏë¹ýÒª¸ø×Ô¼ºÐ´µÄÄǼ¸¸ö³ÌÐò±àдһ·ÝÍêÕûµÄÎĵµ£¬ËùÓеÄ×¢ÊͶ¼½ö½öÊÇΪÁË×Ô¼ºµ±Ê±Äܹ»ÏëÆðÕâ¶Î´úÂëµ½µ×ÊǸÉʲôµÄ£¬Ã»ÓÐÈËÏë
¹ýÕâЩ´úÂëµÄÉý¼¶¡¢¹²ÏíÎÊÌ ......
µÚһ֪ʶµã£º¹¹ÔìÆ÷£¬¹¹ÔìÆ÷ºÍÀàÃûÒ»Ö£¬ÎÞ·µ»ØÖµ£¬ÔÚjavaÖГ³õʼ»¯”Óë“´´½¨”ÊÇÁ¬ÔÚÒ»ÆðµÄ£¬ËùÒÔÎÒÃǾ³£Óù¹ÔìÆ÷ÔÚ´´½¨¶ÔÏóµÄʱºòÀ´³õʼ»¯ÀàµÄһЩʵÀý¡£ÌØÊâ˵Ã÷£ºnew±í´ïʽ·µ»ØÁ˶Ôн¨¶ÔÏóµÄÒýÓ㬵«Êǹ¹ÔìÆ÷±¾ÉíûÓзµ»ØÈκÎÖµ¡£
µÚ¶þ¸ö֪ʶµã£º·½·¨µÄÖØÔØ£¬Ãû³ÆÏàͬ£¬²ÎÊý²»Í¬µÄ·½·¨½Ð×ö· ......