自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (5)
  • 收藏
  • 关注

原创 mysql logs

references:http://dev.mysql.com/doc/refman/4.1/en/server-logs.htmllog 的开启注意要相关的global variables 置成on1)在my.ini里面配置log_bin=ongeneral_log=on//event_scheduler=12)运行中,但是server重启后会恢复成默认配置

2015-03-20 15:26:53 866

转载 mysql:show [full] processlist

references:http://dev.mysql.com/doc/refman/5.5/en/thread-information.html命令:show [full] processlistEach process list entry contains several pieces of information: Id is the connection

2015-03-18 11:19:22 910

原创 solr 一 getting start

http://www.cnblogs.com/hoojo/archive/2011/10/21/2220431.html

2014-12-29 14:03:31 591

原创 zookeeper 1-getting start

参考文献:http://zookeeper.apache.org/doc/r3.4.6/zookeeperStarted.htmlhttp://www.blogjava.net/BucketLi/archive/2010/12/21/341268.html步骤1.下载wget http://mirror.bit.edu.cn/apache/zookeeper/sta

2014-12-29 11:23:13 1167

原创 Solr 二--core 核心源码解读和如何写solr plugin

从web.xml 开始找到web 入口Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additio

2014-12-12 17:23:24 956

转载 很少关注UI,发现这片文章很有用,可以延伸到很多领域啊

http://www.laixintao.com/posts/993

2014-12-03 13:59:50 415

转载 同步异步与阻塞非阻塞

http://www.cppblog.com/converse/archive/2009/05/13/82879.html

2014-05-07 14:02:44 516

转载 CAS

http://wangyuanzju.blog.163.com/blog/static/130292008031101953399/

2014-05-07 12:12:47 486

转载 memcache,redis,mongodb 比较

1.System Properies Comparisonhttp://db-engines.com/en/system/Memcached%3BMongoDB%3BRedis

2014-05-07 12:07:32 489

转载 Top 10 Websites for Advanced Level Java Developers

from:http://www.programcreek.com/2013/09/top-10-websites-for-advanced-level-java-developers/http://stackoverflow.com/http://www.dzone.comhttp://leetcode.com/http://docs.oracle.com/javase/htt

2013-11-11 10:43:04 541

原创 跨db的动态数据源的transaction-3.如何使用动态数据源in mybatis

public class DynamicSqlSessionDaoSupport extends JdbcDaoSupport implements InitializingBean{ private static Logger logger=(Logger) LoggerFactory.getLogger(DynamicSqlSessionDaoSupport.class); pri

2013-11-07 14:50:39 823

原创 跨db的动态数据源的transaction- 2.动态数据源

先参考:http://www.itblog8.cn/java/20130425101.htmlpublic class DataSourceContextHolder { private static final ThreadLocal contextHolder=new ThreadLocal(); /** * @param dsIndex */ public stati

2013-11-07 14:15:48 1234

转载 Atomikos 性能提高8倍

From: http://blog.sina.com.cn/s/blog_53765cf9010176zx.html 使用spring的代理datasource来让spring管理事务,性能问题解决,提高8倍ceProxy">       1.   Atomikos从池里取得connection时,每次都会去进行select test,这个对获取连接

2013-11-07 13:51:11 5354

原创 跨db的动态数据源的transaction- 1动态读取数据源取代配置文件中一一配置

package com.microstrategy.alert.ns.datasources;import java.util.Properties;import org.springframework.beans.factory.InitializingBean;import com.microstrategy.alert.ecommerce.db.DataSourceConfig;

2013-11-06 17:27:02 1402

原创 spring:remoting

参考:http://static.springsource.org/spring/docs/3.1.2.RELEASE/spring-framework-reference/html/remoting.html1.beanpackage cmei.spring.integration.remote.dto;import java.io.Serializable;public c

2012-12-05 15:14:58 1071

原创 spring beans

bean的生命周期Bean is ready for use:1.container找到bean类的定义并实例化该bean2.使用DI,设置属性。(调用setXXX)3.如果Bean实现了BeanNameAware,factory 将bean的id传入setBeanName()4.如果Bean实现了BeanFactoryAware,factory 讲自身的实例传入setBean

2012-07-26 17:55:49 600

原创 spring:Task Execution and scheduler

参考:spring3.0 document:http://static.springsource.org/spring/docs/3.1.2.RELEASE/spring-framework-reference/html/scheduling.html1.General Task Example    1) 自己创建继承Thread或者实现Runnable接口的Task:pac

2012-07-23 18:09:13 2469

翻译 spring transaction

1.different transaction implementations1)org.springframework.jdbc.datasource.DataSourceTransactionManagerManages transactions on a single JDBCDataSource.2)org.springframework.orm.hibernate.Hib

2012-07-10 16:31:17 542

转载 spring 注解

http://blog.csdn.net/ljhabc1982/article/details/6697621四种集合的注入:Java.util.Listsomevalue                valuexxx  Java.util.Setsomevalue                valuexxx

2012-06-27 10:49:39 284

转载 java 注解

java 常用注解http://blog.csdn.net/ljhabc1982/article/details/6697287

2012-06-27 10:48:07 465

原创 多数据源事务管理 Atomikos

1. 选择哪种transaction manager?     在单数据源情况下,JDBC,Hibernate,ibatis等自带的 transaction manager已能用于处理事务。    但当设计多种数据源的事务处理时,上面的transaction manager就没法用了。这个时候可选事务管理组件有:Bitronix,SimpleJTA,Tyrex (dead?), JOT

2012-06-27 10:00:03 3571

原创 设计模式区分

1.代理模式与适配器模式、装饰模式、门面模式   1)适配器模式的用意是要改变所考虑的对象的接口,而代理模式并不能改变所代理的对象的接口。   2)装饰模式应当为所装饰的对象提供增强功能,而代理模式对对象的使用施加控制,并不提供对象本身的增强功能。   3)有时候门面模式兼任代理的责任。门面对象可能是一个位于另一个地址空间的子系统的远程代理。

2012-04-18 17:22:32 466

原创 jar包 配置文件路径问题

1. System.getProperty("user.dir")   在ecplise里面会是当前工程根目录  而打包后,得到的是jar包所在的跟目录。2.Class.getResourceAsStream ("/some/pkg/resource.properties");   需要"/"3.ClassLoader.getResourceAsStream ("some/pk

2011-12-26 12:54:55 870

原创 Thread.sleep() 是否释放ReentrantLock?

The Thread.sleep() method effectively "pauses" the current thread for a given period of time. We used it in our very firstthreading exampl

2011-09-08 09:54:11 1082 1

原创 switch.... break

好多年没用swith了,今天写一个test case用了swith语句,结果出现一个bug却怎么找不到原因,百思不接其解。最后去查swith用法(原来我以为它只是if..else替代),才原来自己错了,连swith不仅仅是if...else的替代(需要加上break才是if..e

2011-07-29 11:34:27 357

原创 Spring AOP (二) 碰到的一些Exceptions

1. can't find referenced pointcut          Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut          有关这个问题,我搜索了

2011-07-14 11:38:15 591

原创 spring & aop- hello world (一)

1. 首先下载准备需要的包:     1)spring framework 3.0.x:  http://www.springsource.com/download/community?sid=1220898           spring3.0 以上与前面的版本目录不同,下载解压后不再是一个spring.jar包,而是根据不同的需要将其分开在dist目录下。用户可以根据需要选择。

2011-07-14 11:05:05 426

原创 windows 上memcached初步使用-java版

参考:http://q.sohu.com/forum/5/topic/640252           http://danga.com/memcached/           http://code.jellycan.com/memcached/1.下载: memcached

2011-07-07 15:12:46 1060

原创 搜狐博客地址

http://tx2mp.blog.sohu.com/

2011-06-20 09:08:00 513

开源的语法分析工具Another Tool for Language Recognition

ANTLR—Another Tool for Language Recognition,其前身是PCCTS,它为包括Java,C++,C#在内的语言提供了一个通过语法描述来自动构造自定义语言的识别器(recognizer),编译器(parser)和解释器(translator)的框架。ANTLR可以通过断言(Predicate)解决识别冲突;支持动作(Action)和返回值(Return Value)来;更棒的是,它可以根据输入自动生成语法树并可视化的显示出来(这一点我将在下面的例子中演示)。由此,计算机语言的翻译变成了一项普通的任务—在这之前YACC/LEX显得过于学院派,而以LL(k)为基础的ANTLR虽然在效率上还略有不足,但是经过近些年来的升级修改,使得ANTLR足以应付现存的绝大多数应用。感谢Terence Parr博士和他的同事们十几年来的出色工作,他们为编译理论的基础和语言工具的构造做了大量基础性工作,也直接导致了ANTLR的产生。

2011-06-29

Java优化编程 性能优化

Java优化规则 Java内存管理 设计模式 性能提升

2010-05-10

Efficient C++ Performance Programming Techniques

This book focuses on combining C++'s power and flexibility with high performance and scalability, resulting in the best of both worlds. Specific topics include temporary objects, memory management, templates, inheritance, virtual functions, inlining, referencecounting, STL, and much more.

2010-05-09

单元测试之道:JUNit

内容:单元测试、使用JUnit编写单元测试、测试那些内容、边界条件、设计话题等

2009-07-01

空空如也

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

TA关注的人

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