JavaÁ¬½Ó³Ø BoneCP 0.6.0 ·¢²¼
JavaÁ¬½Ó³Ø BoneCP 0.6.0 ·¢²¼
ÎÒÒª·¢²¼ÐÂÎÅ ÊղشËƪÐÂÎÅ ºìÊí ·¢²¼ÓÚ£º 2009Äê12ÔÂ28ÈÕ (6ÆÀ)
BoneCP ÊÇÒ»¸ö¿ªÔ´µÄ¿ìËÙµÄ JDBC Á¬½Ó³Ø¡£
0.6.0 °æ±¾µÄ¸Ä½øÄÚÈÝ°üÀ¨£º
1. Ôö¼Óͨ¹ý getAsyncConnection ·½·¨»ñÈ¡Òì²½Á¬½ÓµÄ¹¦ÄÜ
2. Ôö¼ÓÁËÊý¾Ý¿âÁ¬½ÓµÄ»Øµ÷¹³×Ó
3. Ôö¼ÓÁËÓÃÒÔÏòÊ״λñÈ¡µÄÁ¬½Ó·¢ËÍÒ»¸öÌض¨µÄÓï¾äµÄ¹¦ÄÜ
4. ¿Éͨ¹ý getRawConnection() ·½·¨Ö±½Ó»ñÈ¡µ½Î´¾¹ý BoneCP ·â×°µÄÁ¬½Ó¶ÔÏó
5. ʹÓà Connection.close() ·½·¨À´Ìæ»»ÔÓÐµÄ releaseConnection() ¹Ø±ÕÁ¬½ÓµÄ·½·¨
6. ½« Hibernate µÄ Provider ÀàÒƵ½×Ó°üÖÐ
7. ÖØдÁËÐÔÄܲâÊÔÀ࣬ÒÔ¸üÖ±¹ÛµÄͼÐη½Ê½½øÐÐÐÔÄܱȽÏ
ÏÂÔØ BoneCP 0.6.0
http://jolbox.com/bonecp/downloads/maven/com/jolbox/bonecp/0.6.0/bonecp-0.6.0.jar
Ïà¹ØÎĵµ£º
DOM³õ²½
DOMÊÇDocument Object ModelµÄËõд£¬¼´Îĵµ¶ÔÏóÄ£ÐÍ¡£Ç°Ãæ˵¹ý£¬XML½«Êý¾Ý×é֯Ϊһ¿ÅÊ÷£¬ËùÒÔDOM¾ÍÊǶÔÕâ¿ÅÊ÷µÄÒ»¸ö¶ÔÏóÃèÐð¡£Í¨Ë×µÄ˵£¬¾ÍÊÇͨ¹ý½âÎöXMLÎĵµ£¬ÎªXMLÎĵµÔÚÂß¼ÉϽ¨Á¢Ò»¸öÊ÷Ä£ÐÍ£¬Ê÷µÄ½ÚµãÊÇÒ»¸ö¸ö¶ÔÏó¡£ÎÒÃÇͨ¹ý´æÈ¡ÕâЩ¶ÔÏó¾ÍÄܹ»´æÈ¡XMLÎĵµµÄÄÚÈÝ¡£
ÏÂÃæÎÒÃÇÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£¬¿´¿´ÔÚDOMÖ ......
2£®DOMʵÀý
ÓÐÁËÉÏÃæµÄ½éÉÜ£¬ÏàÐÅÄã¶ÔDOMÀí½âµÄ¸ü¶àÁË°É¡£ÏÂÃæµÄÀý×Ó½«ÈÃÄã¶ÔDOM¸ü¼ÓÊìϤÆðÀ´¡£
ÏÈ˵˵Õâ¸öÀý×Óµ½µ×Òª×öµÄÊÇʲô°É£¬ÎÒÃÇÏ£ÍûÔÚÒ»¸öÃûΪlink.xmlÎļþÖб£´æÁËһЩURLµØÖ·£¬Í¨¹ýÒ»¸ö¼òµ¥µÄ³ÌÐò£¬ÎÒÃÇ¿ÉÒÔͨ¹ýDOM°ÑÕâЩURL¶Á³ö²¢ÏÔʾ³öÀ´£¬Ò²¿ÉÒÔ·´¹ýÀ´ÏòÕâ¸öXMLÎļþÖÐдÈë¼ÓÈëµÄURLµØÖ·¡£ºÜ¼òµ¥£¬È´ºÜÊµÓ ......
²ÉÓÃUDPµÄͨѶ·½Ê½£¬µ÷ÓÃjava×Ô´øµÄawt´òÓ¡½Ó¿Ú
·þÎñÆ÷¶Ë´úÂë
Server£º
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;
public class Server
{
private DatagramSocket server;
private DatagramPacket packet;
......
public static Object getCloneObject(Object bean) {
Object cloneBean = null;
try {
ByteArrayOutputStream byout = new ByteArrayOutputStream();
ObjectOutputStream obj = new ObjectOutputStream(byout);
obj.writeObject(bean);
ByteArrayInputStream byin = new ByteArrayInputStream(byou ......
Java NIO APIÏê½â
ÔÚJDK 1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄͬ²½£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩÒì²½(non-blocking)IO ......