自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (3)
  • 收藏
  • 关注

原创 Fastest C# Case Insenstive String Replace

private static string ReplaceEx(string original, string pattern, string replacement) { int count, position0, position1; count = position0 = position1 = 0; string ...

2010-06-06 11:15:07 145

原创 Hibernate

User Address: Address是User的子对象。OneToOne is set on address field in User entity. case 1. 没有设置CascadeType, only persist User: -> TransientException will be thrown, it said there are transient obj...

2010-01-24 16:27:29 104

原创 jBPM 4 Maven Dependencies

org.jbpm.jbpm4 jbpm-api 4.3 org.jbpm.jbpm4 jbpm-jpdl 4.3 xerces ...

2010-01-18 23:49:50 304

原创 CXF Client

1.Create project with maven 2.add in pom.xml [code="xml"] org.apache.cxf cxf-rt-frontend-jaxws 2.2.4 org.apache....

2009-10-27 18:18:50 132

原创 Configuring a JBoss + Spring + JPA (Hibernate) + JTA web application

Configuring a JBoss + Spring + JPA (Hibernate) + JTA web application http://www.swview.org/node/214 Here's how one might go about deploying a Spring application in JBoss (4.something) that use...

2009-10-22 15:26:09 114

原创 Spring, JPA, and JTA with Hibernate and JOTM

[url]http://erich.soomsam.net/2007/04/24/spring-jpa-and-jta-with-hibernate-and-jotm/[/url] have been struggling for a couple of hours today to modify a Spring JPA configuration with a single dataso...

2009-10-20 10:04:49 129

原创 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 216

原创 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&amp...

2009-10-15 18:51:36 113

原创 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 122

原创 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 89

原创 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 99

原创 C3P0连接池详细配置

3 30 1000 false Test false 100 null false 60 3 60 15 100 3 root ...

2009-09-15 12:07:31 96

原创 设置MySQL数据库同步-mysql双机热备资料集锦

摘要:mysql从3.23.15版本以后提供数据库复制功能,而以前,数据库双机热备还仅是大型数据库的专利,利用该功能可以实现两个数据库同步,主从模式,互相备份模式的功能。 MYSQL5.0双机热备 原文网址:http://blog.csdn.net/lgjlry/archive/2007/12/01/1910094.aspx 近日研究mysql 5.0.* Replicati...

2009-09-13 20:27:11 181

原创 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 247

原创 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 255

原创 调整线程池

所以假设为了使处理器得到充分使用,线程池应该有多大?如果知道系统有多少处理器和任务的计算时间和等待时间的近似比率,Amdahl 法则提供很好的近似公式。 用 WT 表示每项任务的平均等待时间,ST 表示每项任务的平均服务时间(计算时间)。则 WT/ST 是每项任务等待所用时间的百分比。对于 N 处理器系统,池中可以近似有 N*(1+WT/ST) 个线程。 ...

2009-04-19 17:27:44 172

web_beans-1_0-pr-rev2-spec

web beans /java/ jsr299/ web beans spec

2009-08-26

webbeans_reference

web beans reference . jsr299. java programer reference book

2009-08-26

Java Persistence with Hibernate

Java Persistence with Hibernate

2009-03-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除