`
winyee
  • 浏览: 54063 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
private static string ReplaceEx(string original,                     string pattern, string replacement) {     int count, position0, position1;     count = position0 = position1 = 0;     string upperString = original.ToUpper();     string upperPattern = pattern.ToUpper();     int inc = (original.Len ...
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 object. case 2. CascadeType is not set, persist User, persist Address -> successful. sql: 1. ...
<dependency>             <groupId>org.jbpm.jbpm4</groupId>             <artifactId>jbpm-api</artifactId>             <version>4.3</version>         </dependency>          <dependency>             <groupId>org.jbpm.jbpm4</groupId>       ...
1.Create project with maven 2.add in pom.xml <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>2.2.4</version> </dependency> < ...
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 uses JPA with Hibernate as the provider for persistence and JTA for transaction demarcation. 1. Define the S ...
http://erich.soomsam.net/2007/04/24/spring-jpa-and-jta-with-hibernate-and-jotm/ have been struggling for a couple of hours today to modify a Spring JPA configuration with a single datasource, Hibernate as the JPA provider and the JpaTransactionManager to a configuration with two XA datasources, Hibe ...
http://www.blogjava.net/agapple/archive/2008/10/23/236142.html http://www.diybl.com/course/3_program/java/javajs/20090213/155337.html http://www.jboss.org/community/wiki/ClassLoadingconfiguration
1.Create DataSource in WEB-INF/, filename: mysql-ds.xml <?xml version="1.0" encoding="UTF-8"?> <!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about local-tx-datasource --> <!-- $Id: mysql-ds.xml 88948 2009-05-15 14:09:08Z jesper.peder ...
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 your persistence.xml configuration file: view plaincopy to clipboardprint? <persistence> &l ...
<component-scan> 无法在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/ http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213444 https://jira ...
1. 部署时排除xml-apis-1.0.b2.jar, 这个包被dom4j依赖. 会导致struts2无法解析xml config.         <dependency>             <groupId>xml-apis</groupId>             <artifactId>xml-apis</artifactId>             <version>1.0.b2</version>             <type>jar</type>    ...
  <default-config> <!--当连接池中的连接耗尽的时候c3p0一次同时获取的连接数。Default: 3 --> <property name="acquireIncrement">3</property> <!--定义在从数据库获取新连接失败后重复尝试的次数。Default: 30 --> <property name="acquireRetryAttempts">30</property> <!--两次连接中间隔时间,单位毫秒。De ...
摘要:mysql从3.23.15版本以后提供数据库复制功能,而以前,数据库双机热备还仅是大型数据库的专利,利用该功能可以实现两个数据库同步,主从模式,互相备份模式的功能。 MYSQL5.0双机热备 原文网址:http://blog.csdn.net/lgjlry/archi ...
白领恶梦   1.背口诀记单词   辞职不编software(软件) *   很多时间spare(剩余的)   把钓具来prepare(准备)   坐船忘带fare(船费)   引起一场warfare(交战) *   被扔河里是nightmare(恶梦) *   2.识音标,记单词   software n.软件application software(应用软件),软设备,语言设备,程序系统。   spare adj.多余的, 空闲的,瘦的, 贫乏的, 备用的;v.节约, 吝惜,宽恕, 抽出,出让,免除;n.节省,备用之物;[习语] spare no efforts( ...
1.用maven 创建项目(俺 用netbeans). 2.在pom.xml添加和修改. dependencies: <dependencies> <dependency> <groupId>org.apache.ibatis</groupId> <artifactId>ibatis-sqlmap</artifactId> <version>3.0-beta-2</version> </dep ...
Global site tag (gtag.js) - Google Analytics