笔记
win_yee
这个作者很懒,什么都没留下…
展开
-
调整线程池
所以假设为了使处理器得到充分使用,线程池应该有多大?如果知道系统有多少处理器和任务的计算时间和等待时间的近似比率,Amdahl 法则提供很好的近似公式。 用 WT 表示每项任务的平均等待时间,ST 表示每项任务的平均服务时间(计算时间)。则 WT/ST 是每项任务等待所用时间的百分比。对于 N 处理器系统,池中可以近似有 N*(1+WT/ST) 个线程。 ...原创 2009-04-19 17:27:44 · 147 阅读 · 0 评论 -
SSH app deploy to JBoss5 AS
1. 部署时排除xml-apis-1.0.b2.jar, 这个包被dom4j依赖. 会导致struts2无法解析xml config. xml-apis xml-apis 1.0.b2 jar provided ...原创 2009-10-13 18:46:15 · 86 阅读 · 0 评论 -
integrate spring and jboss
无法在jboss5.1as下使用 需要另外扩展applcationcontext. https://anonsvn.jboss.org/repos/jbossas/projects/spring-int/trunk/ http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/ ...原创 2009-10-15 14:51:14 · 79 阅读 · 0 评论 -
How to deploy the Persistence unit in the global JNDI ?
jboss recipe of the day By default the persistence unit are available in the java: Context. If you wish to make them available also in the global naming Context you have to add two properties to yo...原创 2009-10-15 18:34:48 · 113 阅读 · 0 评论 -
how to deploy SSH WEB App to JBoss5 AS
1.Create DataSource in WEB-INF/, filename: mysql-ds.xml [code="xml"] MySqlDS jdbc:mysql://localhost/struts-tutorial?createDatabaseIfNotExist=true&useUnicode=true&...原创 2009-10-15 18:51:36 · 101 阅读 · 0 评论 -
JBoss Class Loader Ref
[url]http://www.blogjava.net/agapple/archive/2008/10/23/236142.html[/url] [url]http://www.diybl.com/course/3_program/java/javajs/20090213/155337.html[/url] [url]http://www.jboss.org/community/wi...原创 2009-10-15 22:35:15 · 183 阅读 · 0 评论 -
UTF8 byte 与 String type相互转换
[code="c#"]class MyEncoding { public static string EncodeUtf8ByteToString(byte[] buffer) { int count = 0; int index = 0; byte a = 0; ...原创 2009-08-25 14:08:02 · 223 阅读 · 0 评论 -
ibatis3 Configuration
1.用maven 创建项目(俺 用netbeans). 2.在pom.xml添加和修改. dependencies: [code="xml"] org.apache.ibatis ibatis-sqlmap 3.0-beta-2 [/code] 增加一个plugin, ...原创 2009-08-25 14:36:16 · 236 阅读 · 0 评论