JavaÀûÓÃMSNPÐÒéµÇ¼MSN
Çë²Î¼ûÉÏһƪÎÄÕ£¬µÇ¼MSNÐÒé
¾ßÌåJavaʵÏÖ:
ÃüÁîÐòÁУº<<´ú±í·¢ËÍ,>>´ú±í½á¹û
1.Á¬½ÓDS(Dispatcher Server)£¬µÃµ½NS(Notification Server)
<<VER 1 MSNP18 CVR0
>>VER 1 MSNP18
<<CVR 2 0x0804 winnt 5.1 i386 MSNMSGR 14.0.8089.0726 msmsgs yourAccount
>>CVR 2 14.0.8089 14.0.8089 14.0.8089 http://msgruser.dlservice.microsoft.com/download/0/9/7/0974F7CD-D082-46FE-922D-806670345793/zh-chs/wlsetup-cvr.exe http://download.live.com/?sku=messenger
<<USR 3 SSO I yourAccount
>>XFR 3 NS 207.46.124.86:1863 U D
private String dsHost = "64.4.9.254";//ds host
private String nsHost;//ns host
private int port = 1863;//port
private int trId = 1;//ÃüÁîÐòÁкÅ
private String ticketToken;//ÔÚ»ñÈ¡ÁªÏµÈËʱÓÃ
//µÃµ½ÏòMSN·þÎñÆ÷·¢Ë͵ÄÃüÁî
private String getMSNCommand(String cmd, String ... args) {
StringBuilder sb = new StringBuilder();
sb.append(cmd).append(' ');
sb.append(trId++).append(' ');
for (int i = 0; i < args.length; i++) {
if (i < args.length - 1) {
sb.append(args[i]).append(' ');
} else {
sb.append(args[i]);
}
}
sb.append("\r\n");
return sb.toString();
}
//³õʼ»¯NSµØÖ·
private void initNSHost() throws TelnetException {
NonBlockTelnetClient client = new NonBlockTelnetClient(dsHost, port);
client.connect();
String cmd = getMSNCommand("VER", "MSNP18", "CVR0");
client.sendCommand(cmd);
String resp = client.getOutputByLine();
System.out.println("resp=" + resp);
cmd = getMSNCommand("CVR", "0x0804", "winnt", "5.1", "i386", "MSNMSGR", "14.0.8089.0726", "msmsgs", username);
client.sendCommand(cmd);
resp = client.getOutputByLine();
System.out.println("resp=" + resp);
cmd = getMSNCommand("USR", "SSO", "I", username);
client.sendCommand(cmd);
resp = client.getOutput
Ïà¹ØÎĵµ£º
ÎÒ½ñÌìѧϰÁËluceneµÄһЩ֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
Ë÷ÒýÎļþ½á¹¹£º
µ¹ÅÅË÷Òý£¬Ë÷Òý¶ÔÏóÊÇÎĵµÖеĵ¥´ÊµÈ£¬ÓÃÀ´´æ´¢ÕâЩµ¥´ÊÔÚÒ»¸öÎĵµÖеÄλÖá£ÀýÈ磬ÓÐЩÊéÔÚ×îºóÌṩµÄË÷Òý£¨µ¥´Ê——Ò³ÂëµÄ¶ÔÓ¦ÁÐ±í£©£¬¾Í¿ÉÒÔ¿´³ÉÊÇÒ»ÖÖµ¹ÅÅÐòË÷Òý¡£¿ÉÒÔͨ¹ýһЩ¹Ø¼ü×Ö£¬ÔÚÈ«ÊéÖмìË÷³öÓëÖ®Ïà¹ØµÄ²¿
Ë÷ÒýÎ ......
1.´´½¨Ïß³Ì
·½Ê½Ò»£ºÍ¨¹ýThreadµÄ×ÓÀà´´½¨£¬´ËʱÐèÒªÔÚThreadÀàµÄ×ÓÀàÖÐÖØд¸¸ÀàµÄpublic void run()·½·¨
·½Ê½¶þ£ºÖ±½ÓʹÓÃThreadÀà´´½¨
  ......
ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½²µÄjpa£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
JPA(Java Persistence API)ÊÇSun¹Ù·½Ìá³öµÄJava³Ö¾Ã»¯¹æ·¶¡£ËüΪJava¿ª·¢ÈËÔ±ÌṩÁËÒ»ÖÖ¶ÔÏó/¹ØϵӳÉ乤¾ßÀ´¹ÜÀíJavaÓ¦ÓÃÖеĹØϵÊý¾Ý¡£ËûµÄ³öÏÖÖ÷ÒªÊÇΪÁ˼ò»¯ÏÖÓеij־û¯¿ª·¢¹¤×÷ºÍÕûºÏORM¼¼Êõ£¬½áÊøÏÖÔÚHibernate¡¢TopLinkµÈORM¿ò¼Ü¸÷×ÔΪӪµÄ¾ÖÃæ¡£ÖµµÃ×¢ÒâµÄÊÇ£¬JP ......
ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½²µÄUMLͳһ½¨Ä£ÓïÑÔ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
Èí¼þÉúÃüÖÜÆÚ: Èí¼þµÄ²úÉúÖ±µ½±¨·ÏµÄÉúÃüÖÜÆÚ
Èí¼þÉúÃüÖÜÆÚÄÚÓÐÎÊÌⶨÒå, ¿ÉÐÐÐÔ·ÖÎö, ×ÜÌåÃèÊö, ϵͳÉè¼Æ,±àÂë, µ÷ÊԺͲâÊÔ, ÑéÊÕÓëÔËÐÐ, ά»¤Éý¼¶µ½·ÏÆúµÈ½×¶Î
Èí¼þ¹¤³Ì¿ÉÒÔ·ÖΪÈý¸ö´óµÄ½×¶Î:ÐèÇó; Éè¼Æ; ²âÊÔÓëά»¤
Èí¼þµÄÉúÃüÖÜÆÚÏê½â£º
ÎÊÌâµ ......
66. EJBÈÝÆ÷ÌṩµÄ·þÎñ
Ö÷ÒªÌṩÉùÃ÷ÖÜÆÚ¹ÜÀí¡¢´úÂë²úÉú¡¢³ÖÐøÐÔ¹ÜÀí¡¢°²È«¡¢ÊÂÎñ¹ÜÀí¡¢ËøºÍ²¢·¢ÐйÜÀíµÈ·þÎñ¡£
67. EJB¹æ·¶¹æ¶¨EJBÖнûÖ¹µÄ²Ù×÷ÓÐÄÄЩ£¿
1.²»ÄܲÙ×÷Ï̺߳ÍÏß³ÌAPI(Ïß³ÌAPIÖ¸·ÇÏ̶߳ÔÏóµÄ·½·¨Èçn ......