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

´î½¨JAVA·ÃÎÊWebSphere MQÏûÏ¢´«Êä

±¾ÎÄÖ÷Ҫͨ¹ýÁ½Ì¨»úÆ÷£¬´î½¨MQÏûÏ¢´«ÊäµÄ»·¾³£¬²¢±àд²âÊÔ³ÌÐò½øÐвâÊÔ¡£
µÚÒ»¡¢×¼±¸¹¤×÷
×¼±¸2̨Win2000»·¾³£¨XPÒ²¿É£©£¬Í¨¹ýÒÔÌ«ÍøÁ¬Í¨¡£
»úÆ÷A£º´úÂëΪ00000000£¬IPµØַΪ£º10.1.1.1
»úÆ÷B£º´úÂëΪ88888888£¬IPµØַΪ£º10.1.1.2
°²×°MQ 5.3
µÚ¶þ¡¢´´½¨MQ¶ÔÏó
A»úÆ÷ÉÏ£º
1¡¢´ò¿ª“WebSphere MQ×ÊÔ´¹ÜÀíÆ÷”£¬Ð½¨¶ÓÁйÜÀíÆ÷£¬Ãû³ÆΪQM_00000000£¬ÆäÓà²ÉÓÃĬÈÏÉèÖÃ;
2¡¢ÔÚQM_00000000¶ÓÁйÜÀíÆ÷Öд´½¨±¾µØ¶ÓÁУ¬Ãû³ÆΪLQ_00000000;
3¡¢´´½¨´«Êä¶ÓÁУ¬Ãû³ÆΪXQ_88888888£¨Ð½¨Ê±Ñ¡Ôñ“±¾µØ¶ÓÁД£¬½«“Ó÷¨”ÉèÖÃΪ“´«Ê䔣©;
4¡¢´´½¨Ô¶³Ì¶ÓÁж¨Ò壬Ãû³ÆΪRQ_88888888£¬Ö¸¶¨Ô¶³Ì¶ÓÁÐÃû³ÆΪLQ_88888888£¬Ô¶³Ì¶ÓÁйÜÀíÆ÷Ãû³ÆΪQM_88888888£¬´«Êä¶ÓÁÐÃû³ÆΪXQ_88888888;
5¡¢´´½¨·¢ËÍ·½Í¨µÀ£¬Ãû³ÆΪ00000000.88888888£¬´«ÊäЭÒéΪTCP/IP£¬Á¬½ÓÃû³ÆΪ10.1.1.2(1414)£¬´«Êä¶ÓÁÐΪXQ_88888888;
6¡¢´´½¨½ÓÊÜ·½Í¨µÀ£¬Ãû³ÆΪ88888888.00000000£¬²ÉÓÃĬÈÏÉèÖã»
7¡¢´´½¨·þÎñÆ÷Á¬½ÓͨµÀ£¬Ãû³ÆΪDC.SVRCONN£¬²ÉÓÃĬÈÏÉèÖ㨸ÃͨµÀÖ÷Òª¸øºóÃæµÄ²âÊÔ³ÌÐòʹÓã©¡£
B»úÆ÷ºÍA»úÆ÷ÉϵIJÙ×÷Ò»Ñù£¬Ö»ÊÇÃüÃû²»Í¬£¬ÈçÏ£º
1¡¢´ò¿ª“WebSphere MQ×ÊÔ´¹ÜÀíÆ÷”£¬Ð½¨¶ÓÁйÜÀíÆ÷£¬Ãû³ÆΪQM_88888888£¬ÆäÓà²ÉÓÃĬÈÏÉèÖÃ;
2¡¢ÔÚQM_88888888¶ÓÁйÜÀíÆ÷Öд´½¨±¾µØ¶ÓÁУ¬Ãû³ÆΪLQ_88888888;
3¡¢´´½¨´«Êä¶ÓÁУ¬Ãû³ÆΪXQ_00000000£¨Ð½¨Ê±Ñ¡Ôñ“±¾µØ¶ÓÁД£¬½«“Ó÷¨”ÉèÖÃΪ“´«Ê䔣©;
4¡¢´´½¨Ô¶³Ì¶ÓÁж¨Ò壬Ãû³ÆΪRQ_00000000£¬Ö¸¶¨Ô¶³Ì¶ÓÁÐÃû³ÆΪLQ_00000000£¬Ô¶³Ì¶ÓÁйÜÀíÆ÷Ãû³ÆΪQM_00000000£¬´«Êä¶ÓÁÐÃû³ÆΪXQ_00000000;
5¡¢´´½¨·¢ËÍ·½Í¨µÀ£¬Ãû³ÆΪ88888888.00000000£¬´«ÊäЭÒéΪTCP/IP£¬Á¬½ÓÃû³ÆΪ10.1.1.1(1414)£¬´«Êä¶ÓÁÐΪXQ_00000000;
6¡¢´´½¨½ÓÊÜ·½Í¨µÀ£¬Ãû³ÆΪ00000000.88888888£¬²ÉÓÃĬÈÏÉèÖã»
7¡¢´´½¨·þÎñÆ÷Á¬½ÓͨµÀ£¬Ãû³ÆΪDC.SVRCONN£¬²ÉÓÃĬÈÏÉèÖá£
µÚÈý¡¢ÏûÏ¢²âÊÔ
ÔÚA¡¢B»úÆ÷ÉÏ·Ö±ðÆô¶¯Æä·¢ËÍ·½Í¨µÀ£¬Õý³£Çé¿öͨµÀ״̬ӦΪ“ÕýÔÚÔËÐД¡£
ͨ¹ýÈçϲâÊÔ³ÌÐò½øÐвâÊÔ£¬ÎļþÃûΪ£ºMQTest.java£¬ÔÚ»úÆ÷AÉϽøÐÐÔËÐУ¨ÈçÔÚBÉÏÔËÐÐÇë¶ÁÕß×ÔÐÐÊʵ±Ð޸ģ©¡£
import java.io.IOException;
import java.util.Hashtable;
import com.ibm.mq.MQException;
import com.ibm.mq.MQMessage;
import com.ibm.mq.MQPutMessageOptions;
import com.ibm.m


Ïà¹ØÎĵµ£º

java»ñȡϵͳ±àÂë

ÓÉÓÚJDKÊǹú¼Ê°æµÄ£¬ÔÚ±àÒëµÄʱºò£¬Èç¹ûÎÒÃÇûÓÐÓÃ-encoding²ÎÊýÖ¸¶¨ÎÒÃǵÄJAVAÔ´³ÌÐòµÄ±àÂë¸ñʽ£¬Ôòjavac.exeÊ×ÏÈ»ñµÃÎÒÃDzÙ×÷ϵͳĬÈϲÉÓõıàÂë¸ñʽ£¬Ò²¼´ÔÚ±àÒëjava³ÌÐòʱ£¬ÈôÎÒÃDz»Ö¸¶¨Ô´³ÌÐòÎļþµÄ±àÂë¸ñʽ£¬JDKÊ×ÏÈ»ñµÃ²Ù×÷ϵͳµÄfile.encoding²ÎÊý(Ëü±£´æµÄ¾ÍÊDzÙ×÷ϵͳĬÈϵıàÂë¸ñʽ£¬ÈçWIN2k£¬ËüµÄֵΪGBK)£¬È»º ......

¹ØÓÚÒÔThinking in JavaΪ¿Î±¾µÄJava½ÌÓëѧµÄ·½·¨

    ÔÚÄ¿Ç°µÄ¹ØÓÚjava×ÔѧµÄÌÖÂÛÖУ¬×î¾­³£¿´µ½µÄ¾ÍÊÇ×êÑС¶Thinking in java¡·(TIJ)µÄ¾­Ñ飬µ«ÊÇ£¬¾¡¹ÜʹÓÃTIJ×÷Ϊ½Ìѧ²ÄÁϵĽÌѧÐÐΪҲºÜ¶à£¬ÎÒÈ´ÉÐδ·¢ÏÖÓдӽÌʦ¹ØÓÚÈçºÎ½«TIJÓÃÓÚ½ÌѧµÄÂÛÊö¡£Îª´Ë£¬ÎÒȨ×÷Å×שÒýÓñ¡£
 
    Ê×ÏÈ£¬ÎªÊ²Ã´ÒªÑ§Ï°java£¿°´ÕÕEckelµÄ»°Ëµ£¬ ......

java º¯Êý²ÎÊýµÄ´«µÝÎÊÌâ¡£

×î½üÔÚѧϰjavaµÄʱºò£¬¶ÔÓÚjavaº¯ÊýµÄ´«µÝÁ˽âÁËһϡ£javaµÄÊý¾ÝÀàÐÍ´óµÄ·ÖΪÁ½ÖÖ£¬Ò»ÖÖÊÇ»ù±¾Êý¾ÝÀàÐÍ£¬ÁíÒ»ÖÖÊÇ·Ç»ù±¾Êý¾ÝÀàÐÍ£¬£¨ÀàÊý¾ÝÀàÐÍ£©¡£ÔÚ²ÎÊý´«µÝʱºò£¬»ù±¾µÄÊý¾ÝÀàÐÍ´«µÝµÄÊǶÔʵ²ÎÊýµÄÒ»·Ý¿½±´£¬¶ø·Ç»ù±¾Êý¾ÝÀàÐÍÔòÊÇʵÀýµÄÒýÓõÄÒ»·Ý¿½±´¡£ÎÒµÄÀí½âÊÇÀàµÄʵÀý£¬¼´¶ÔÏó´æ·ÅµÄÄÚÈݾÍÊÇÒýÓã¬Êµ¼ÊÊǵØÖ·¡£
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ