How to use Java as NT SERVICE
service = new
Service();
thread=new
Thread(service);
try
{
thread.setDaemon(false
);
if
(!thread.isDaemon())
{
System.out.println("³É¹¦É趨Ïß³ÌΪÓû§Ị̈߳¡"
);
}
thread.start();
}
ÀïÃæµÄServiceÓÉ×Ô¼ºÊµÏÖ£¬×¢Ò⣺ thread.setDaemon(false
);°ÑÏß³ÌÉèÖÃΪÓû§Ị̈߳¬ÒÔ±ÜÃâthread.start()½áÊøºóÏ߳̽áÊø
ËæºóµÄ¹¤×÷¾ÍÊÇÀûÓÃ
JavaService
×¢²á
NT
·þÎñ£¬
JavaService
ÊÇÒ»¸ö¿ªÔ´ÏîÄ¿£¬ÆäÏîÄ¿µØÖ·Îª
http://javaservice.objectweb.org
Ïà¹ØÎĵµ£º
ÉèÖÃ×¢ÊÍÄ£°åµÄÈë¿Ú£º Window->Preference->Java->Code Style->Code Template È»ºóÕ¹¿ªComments½Úµã¾ÍÊÇËùÓÐÐèÉèÖÃ×¢Ê͵ÄÔªËØÀ²¡£ÏÖ¾Íÿһ¸öÔªËØÖðÒ»½éÉÜ£º
Îļþ(Files)×¢ÊͱêÇ©£º
/**
* @Title: ${file_name}
* @Package ${package_name}
* @Description: ${todo}(ÓÃÒ»¾ä»°ÃèÊö¸ÃÎļ ......
Apache MINA (mina-2.0.0-M6Ô´ÂëΪÀý):
ÎÒÃÇʹÓÃmina nio tcp×î³£ÓõÄÑùÀýÈçÏÂ:
NioSocketAcceptor acceptor = new NioSocketAcceptor(/*NioProcessorPool's size*/);
DefaultIoFilterChainBuilder cha ......
1.Listת»»³ÉΪÊý×é¡££¨ÕâÀïµÄListÊÇʵÌåÊÇArrayList)
¡¡¡¡µ÷ÓÃArrayListµÄtoArray·½·¨¡£
¡¡¡¡toArray
¡¡¡¡public <T> T[] toArray(T[] a)·µ»ØÒ»¸ö°´ÕÕÕýÈ·µÄ˳Ðò°üº¬´ËÁбíÖÐËùÓÐÔªËØµÄÊý×飻·µ»ØÊý×éµÄÔËÐÐʱÀàÐ;ÍÊÇÖ¸¶¨Êý×éµÄÔËÐÐʱÀàÐÍ¡£Èç¹ûÁбíÄÜ·ÅÈëÖ¸¶¨µÄÊý×飬Ôò·µ»Ø·ÅÈë´ËÁбíÔªËØµÄÊý×é¡£·ñÔò£¬½«¸ù¾ ......
http://blog.sina.com.cn/s/blog_49605b46010007o2.html
<div name='endDateHourDiv<%=i%>' onclick="changeSelect('<%=i%>')">
<html:select property="endDateHour" onclick="Change(this.value,'<%=i%>')">
<html:option va ......